jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Richard (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-3461) SQL2 query returns no results because @ in path is ignored
Date Thu, 22 Nov 2012 13:04:58 GMT

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

Joel Richard commented on JCR-3461:

Here an example query:
SELECT * FROM [nt:base] AS node WHERE ISDESCENDANTNODE([/content/test@test])
> SQL2 query returns no results because @ in path is ignored
> ----------------------------------------------------------
>                 Key: JCR-3461
>                 URL: https://issues.apache.org/jira/browse/JCR-3461
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr-commons
>    Affects Versions: 2.5
>            Reporter: Joel Richard
>            Priority: Minor
>              Labels: queryparser, sql2
> If you search for nodes under a given path with ISDESCENDANTNODE and the path contains
an @, no results are returned because the @ is removed from the path and then the path cannot
be found. 
> The @ gets lost in the org.apache.jackrabbit.commons.query.sql2.Parser#readName method.
The reason is that the initialize method assigns the wrong type for @.
> Probably the problem exists for other special characters as well.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message