Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-5367

Strange path parsing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core
    • None

    Description

      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 ("}{").

      Attachments

        1. JcrPathParserTest.java
          6 kB
          Thomas Mueller

        Issue Links

          Activity

            People

              thomasm Thomas Mueller
              thomasm Thomas Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: