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

Helper Method to escape illegal XPath Search Term

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5
    • Component/s: jackrabbit-jcr-commons
    • Labels:
      None

      Description

      If you try to perform a search like this

      //element(*, nt:base)[jcr:contains(., 'test!')]

      you get this exception

      javax.jcr.RepositoryException: Exception building query: org.apache.jackrabbit.core.query.lucene.fulltext.ParseException: Encountered "<EOF>" at line 1, column 6.

        Attachments

        1. patch.txt
          1 kB
          Claus Köll

          Issue Links

            Activity

              People

              • Assignee:
                c_koell Claus Köll
                Reporter:
                c_koell Claus Köll
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: