[ 
https://issues.apache.org/jira/browse/JCR-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke closed JCR-1288.
-------------------------------

    Resolution: Invalid

Talked to Marcel Reutegger. PathQueryNode has a flag keeping the "isabsolute" 
information, and code that uses the query tree representation needs to process 
that.

So no bug.


> 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