Angela Schreiber created SLING-10388:
----------------------------------------

             Summary: RepoPath.getParent returns null for top-level paths
                 Key: SLING-10388
                 URL: https://issues.apache.org/jira/browse/SLING-10388
             Project: Sling
          Issue Type: Improvement
          Components: Content-Package to Feature Model Converter
            Reporter: Angela Schreiber


[~kpauls], as discussed it seem there exists one (or potentially many) bugs in 
the {{RepoPath}} class as {{new RepoPath("/apps").getParent()}} returns null, 
which IMHO is unexpected.

more things i noticed while trying to understand what's going on:
- toString for a repository path is "/" and not ""
- equals method ignores isRepositoryPath field
- getSegmentCount is not used at all
- however, getSegments does not exist (but would be better in 
{{DefaultAclManager.getCreatePath}} than the split/substring on the toString 
method)




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to