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

Query: first selector should be main selector

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.5, 1.6.0
    • query
    • None

    Description

      Some applications and tools expect that the first selector is the "main" selector. This is not a bug (violation of the JCR spec or contrary to the documentation) but a compatibility issue with Jackrabbit 2.x. So for the XPath query

      //a[@x]/b[@y]
      

      the expectation is that the path of the first selector is "/a/b" and not "/a". The XPath query is converted to SQL-2 join, that has two selectors.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: