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

Helper Method to escape illegal XPath Search Term

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.5
    • jackrabbit-jcr-commons
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: