[
https://issues.apache.org/jira/browse/JCR-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560500#action_12560500
]
Jukka Zitting commented on JCR-1211:
------------------------------------
It's a bug that the query engine fails to inform the user about its inability
to correctly execute the query.
A separate feature request should be filed for actually implementing support
for using jcr:deref in a predicate. Until we do have that feature, the correct
behaviour for the query engine is to reject such queries, thus this issue.
> QueryManager does not throw exception if jcr:deref is used in a predicate
> -------------------------------------------------------------------------
>
> Key: JCR-1211
> URL: https://issues.apache.org/jira/browse/JCR-1211
> Project: Jackrabbit
> Issue Type: Bug
> Components: xpath
> Affects Versions: 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 1.3.1,
> 1.3.3
> Reporter: Marcel Reutegger
> Priority: Minor
>
> The XPath query builder should throw an InvalidQueryException if an attempt
> is made to create the following query:
> //element(*, nt:linkedFile)[jcr:deref(@jcr:content, '*'])
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.