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

XPath: string literals parsed as identifiers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.7.1, 1.2.27, 1.4.17, 1.6.3, 1.8.0
    • query
    • None

    Description

      The following query (for example) is not parsed correctly, as @ is parsed as attribute prefix:

      /jcr:root/home//element(*,rep:Authorizable)[jcr:like(@rep:authorizableId,'@')]
      

      Possibly XPathToSQL2Converter should use currentTokenQuoted for this. Possibly a similar problem can occur in SQL2Parser (needs to be tested). Right now, it looks like currentTokenQuoted is never set to true; that should probably happen in read().

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: