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

XPath: string literals parsed as identifiers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.1, 1.2.27, 1.4.17, 1.6.3, 1.8.0
    • Component/s: query
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: