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

XPath to SQL-2 conversion fails due to escaping error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.4
    • 1.1.6
    • query
    • None

    Description

      The problem is that the comment is not properly escaped (a C-style comment), so that "*/" in the XPath query accidentally ends the comment in the SQL-2 query.

      The following query can't be converted to SQL-2, because it contains "*/":

      /jcr:root/etc//*[@type = 'product' 
      and ((@size = 'M' or */@size= 'M' or */*/@size = 'M' 
      or */*/*/@size = 'M' or */*/*/*/@size = 'M' or */*/*/*/*/@size = 'M'))]
      

      I think this was introduced by OAK-2354
      http://svn.apache.org/viewvc?view=revision&revision=1645616

      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: