You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2019/07/03 12:26:00 UTC

[jira] [Commented] (OAK-8457) Constructor allows creating invalid path

    [ 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)