jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (OAK-229) Review root-node shortcut in NamePathMapperImpl
Date Thu, 16 Aug 2012 15:53:38 GMT

     [ 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

       

Mime
View raw message