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 "angela (JIRA)" <ji...@apache.org> on 2013/07/04 16:29:48 UTC
[jira] [Updated] (OAK-888) PathUtils#getDepth returns 1 for empty
path
[ 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