jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fabrizio giustina (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-2732) ParseException in xpath query using an escaped string in jackrabbit 2.x (works in 1.6)
Date Sun, 29 Aug 2010 07:06:53 GMT
ParseException in xpath query using an escaped string in jackrabbit 2.x (works in 1.6)
--------------------------------------------------------------------------------------

                 Key: JCR-2732
                 URL: https://issues.apache.org/jira/browse/JCR-2732
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: query, xpath
    Affects Versions: 2.1.1, 2.1.0, 2.0.0
            Reporter: fabrizio giustina


For a particular sequence of chars, ":)" os ":(", jackrabbit 2.x seems to break also when
the xpath statement is properly escaped

Looks like the way I escape the ":)" os ":(" sequence was used to work fine in jackrabbit
1.6, but produces a parsing error in jackrabbit 2.x.

The following query, with a space in between ":" and ")" works fine in any version of jackrabbit:
{code}
//*[jcr:contains(@title, '\: \)')]
{code}


This one, without any space, works only in jackrabbit 1.6:
{code}
//*[jcr:contains(@title, '\:\)')]
{code}

in 2.x the result is a ParseException: Cannot parse '\:\\)': Encountered " ")" ")

Is anything changed in how xpath queries must be escaped in 2.x or Is this a bug?



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


Mime
View raw message