Thomas Mueller created OAK-5367:
-----------------------------------
Summary: Strange path parsing
Key: OAK-5367
URL: https://issues.apache.org/jira/browse/OAK-5367
Project: Jackrabbit Oak
Issue Type: Improvement
Components: core
Reporter: Thomas Mueller
Assignee: Thomas Mueller
Incorrect handling of path with "\{" was fixed in OAK-5260, but the behavior of
the JcrPathParser is still strange. For example:
* the root node, "/", is mapped to "/", and the current node, "." is mapped to
"". But "/." is mapped to the current node (should be root node).
* "/parent/./childA2" is mapped to "/parent/childA2" (which is fine), but
"/parent/.}/childA2" is also mapped to "/parent/childA2".
* "\}\{" and "}\[" and "}}[" are mapped to the current node. So are ".[" and
"/[" and ".}". And "}\{test" is mapped to "}\{test", which is
inconsistent-weird.
* "x\[1\]}" is mapped to "x".
All that weirdness should be resolved. Some seem to be just weird, but some
look like they could become a problem at some point ("}\{").
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)