Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3461

SQL2 query returns no results because @ in path is ignored

    XMLWordPrintableJSON

    Details

      Description

      If you search for nodes under a given path with ISDESCENDANTNODE and the path contains an @, no results are returned because the @ is removed from the path and then the path cannot be found.

      The @ gets lost in the org.apache.jackrabbit.commons.query.sql2.Parser#readName method. The reason is that the initialize method assigns the wrong type for @.

      Probably the problem exists for other special characters as well.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joelrich Joel Richard
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: