Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Content-Package to Feature Model Converter 1.1.0
-
None
Description
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)
- startswith(null(: comment states that the root path is null which is not what the code does in the constructor.... startswith(null) should IMO return false
Attachments
Issue Links
- Discovered while testing
-
SLING-10386 Converter needs to issue create path statements for repoinit path without node type
- Closed
- links to