[
https://issues.apache.org/jira/browse/JCR-1248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Köll updated JCR-1248:
----------------------------
Attachment: patch.txt
I added a helper Method in org.apache.jackrabbit.util.Text to escape illegal
XPathChars.
It checks illegal chars at the end of a XPatch search term.
> ParseException if search string ends with '!'
> ---------------------------------------------
>
> Key: JCR-1248
> URL: https://issues.apache.org/jira/browse/JCR-1248
> Project: Jackrabbit
> Issue Type: Bug
> Components: jackrabbit-core, query
> Affects Versions: 1.3.3
> Reporter: Claus Köll
> Attachments: patch.txt
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.