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:27:48 UTC
[jira] [Created] (OAK-888) PathUtils#getDepth returns 1 for empty
path
angela created OAK-888:
--------------------------
Summary: 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
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