[ 
https://issues.apache.org/jira/browse/OAK-888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

angela updated OAK-888:
-----------------------

    Attachment: OAK-888.patch

test and proposed fix.
                
> PathUtils#getDepth returns 1 for empty path
> -------------------------------------------
>
>                 Key: OAK-888
>                 URL: https://issues.apache.org/jira/browse/OAK-888
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: commons
>            Reporter: angela
>         Attachments: OAK-888.patch
>
>
> PathUtils#getDepths that the root path / has depth 0.
> however, passing in a empty string is accepted and returns 1.
> according to the API contract getDepth is counting the number of elements
> in the path which for "" should IMO be zero.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to