Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
it is currently possible to create illegal/inconsistent paths using the default path factory.
Path objects are expected to represent syntactically correct paths.
some examples:
PathFactory pf = PathFactoryImpl.getInstance();
Path.Element re = pf.getRootElement();
Path illegalPath = pf.create(new Path.Element[]
);
Path.Element pe = pf.getParentElement();
Path nonNormalizedPath = pf.create(new Path.Element[]
); // "../.."
assertFalse(nonNormalizedPath.isNormalized());
Attachments
Issue Links
- is part of
-
JCR-1526 Various improvment to Path and PathImpl
- Closed