jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Zdila (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-522) XPath parser too tolerant
Date Wed, 07 May 2008 14:40:55 GMT

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

Martin Zdila commented on JCR-522:
----------------------------------

Jackrabbit also silently skips other XPath constructs it doesn't understand, for example:
//*[name() = 'aaa']   # (here name() is unknown function as it should be fn:name but this
error is silently ignored)
//aaa[nonexistingnode]   # [nonexistingnode] is ignored without a warning
//* order by aaa/@bbb   # ordering by child axis is not supported but no error/warning is
generated

> XPath parser too tolerant
> -------------------------
>
>                 Key: JCR-522
>                 URL: https://issues.apache.org/jira/browse/JCR-522
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core, query
>    Affects Versions: 0.9, 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: Julian Reschke
>            Assignee: Julian Reschke
>            Priority: Minor
>
> The XPath parser seems to be too tolerant, in that it accepts expressions Jackrabbit
is not designed to deal with, and silently treats them in some other way.
> For instance "/a | /b" is accepted and processed as "/a/b".
> (As mentioned on the mailing list, there may be other related issues such as unsupported
function names that are accepted but shouldn't)

-- 
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