jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-8457) Constructor allows creating invalid path
Date Wed, 03 Jul 2019 12:26:00 GMT

    [ https://issues.apache.org/jira/browse/OAK-8457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16877795#comment-16877795
] 

Marcel Reutegger commented on OAK-8457:
---------------------------------------

Proposed changes on GitHub: https://github.com/mreutegg/jackrabbit-oak/tree/OAK-8457

Running benchmarks to see whether there is a noticeable impact on performance...

> Constructor allows creating invalid path
> ----------------------------------------
>
>                 Key: OAK-8457
>                 URL: https://issues.apache.org/jira/browse/OAK-8457
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: documentmk
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>            Priority: Minor
>
> The constructor {{Path(String)}} does not check whether the passed String is in fact
a node or rather a path (containing the slash character). The constructor should throw an
exception when the String represents a path with more than one element.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message