jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaohua Lu (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-829) XPath character escape problem
Date Fri, 30 Mar 2007 14:50:25 GMT
XPath character escape problem

                 Key: JCR-829
                 URL: https://issues.apache.org/jira/browse/JCR-829
             Project: Jackrabbit
          Issue Type: Bug
    Affects Versions: 1.2.2
            Reporter: Xiaohua Lu

I created a node with name "a & b" but when I tried to query it with 
a &amp; b
a & b
a %26 b
a &#38 b.

they all gave exceptions like 

org.apache.jackrabbit.core.query.xpath.TokenMgrError: Lexical error at line 1, c
olumn 15.  Encountered: "2" (50), after : "%"
        at org.apache.jackrabbit.core.query.xpath.XPathTokenManager.getNextToken
        at org.apache.jackrabbit.core.query.xpath.XPath.jj_ntk(XPath.java:9187)
        at org.apache.jackrabbit.core.query.xpath.XPath.PredicateList(XPath.java
        at org.apache.jackrabbit.core.query.xpath.XPath.AxisStep(XPath.java:4707
        at org.apache.jackrabbit.core.query.xpath.XPath.StepExpr(XPath.java:4597
        at org.apache.jackrabbit.core.query.xpath.XPath.RelativePathExpr(XPath.j

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message