[
https://issues.apache.org/jira/browse/OAK-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Dürig resolved OAK-229.
-------------------------------
Resolution: Invalid
Fix Version/s: 0.5
The short cut is inline with the definition of oak paths.
> Review root-node shortcut in NamePathMapperImpl
> -----------------------------------------------
>
> Key: OAK-229
> URL: https://issues.apache.org/jira/browse/OAK-229
> Project: Jackrabbit Oak
> Issue Type: Sub-task
> Reporter: angela
> Assignee: Michael Dürig
> Fix For: 0.5
>
>
> NamePathMapperImpl#getOakPath(String jcrPath) contains the following shortcut:
> if ("/".equals(jcrPath)) {
> // avoid the need to special case the root path later on return "/";
> }
> if oak-paths are defined to contain no leading / (such as Tree#getPath does)
> i think this shortcut is inconsistent or maybe even wrong.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira