[ 
https://issues.apache.org/jira/browse/JCR-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555611#action_12555611
 ] 

Julian Reschke commented on JCR-1288:
-------------------------------------

I wasn't trying with Jackrabbit at all; I'm using the query parser of 
Jackrabbit in a custom component.

Thanks for the feedback, will have to investigate further.


> query parser doesn't handle relative XPath expressions
> ------------------------------------------------------
>
>                 Key: JCR-1288
>                 URL: https://issues.apache.org/jira/browse/JCR-1288
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core
>            Reporter: Julian Reschke
>            Priority: Minor
>
> JSR-170 says that relative query (XPATH) expression are evaluated against 
> "/jcr:root", thus
> (1)  a/b
> and
> (2)  /jcr:root/a/b
> would be equivalent, while
> (3)  /a/b
> means something else (will never match anything). Unfortunately, the query 
> parser seems to treat (1) and (3) the same way, which makes it hard to 
> disnguish the two cases.
> (this probably means that Jackrabbit accepts a class of broken queries (3) 
> that it shouldn't accept)

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

Reply via email to