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

XPath queries: compatibility for missing @ in front of property names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.16
    • core, query
    • None

    Description

      XPath queries with conditions of the form

      [id='test']

      are not problematic. Jackrabbit 2.x interpreted such conditions as

      [@id='test']

      , and Oak currently interprets them as

      [@id/* = 'test']

      , as this is the expected behavior for conditions of the form

      [jcr:contains(id, 'test')]

      .

      I believe the condition

      [id='test']

      is illegal, and it would be better to throw an exception instead, saying a @ is missing.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: