You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2009/01/08 23:47:00 UTC

[jira] Updated: (JCR-714) TCK: Test root path not escaped when used in XPath queries

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

Jukka Zitting updated JCR-714:
------------------------------

    Attachment: JCR-714.patch

Attached a patch that properly encodes the test path for use in the XPath queries.

The only problem with this patch is that it needs the ISO9075.encodePath() method from jackrabbit-jcr-commons. I'm not sure what are the implications of the jcr-commons dependency, though as long as the TCK webapp uses JNDI to access the repository from another classloader this should be no problem.

> TCK: Test root path not escaped when used in XPath queries
> ----------------------------------------------------------
>
>                 Key: JCR-714
>                 URL: https://issues.apache.org/jira/browse/JCR-714
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-jcr-tests
>            Reporter: Jukka Zitting
>            Priority: Minor
>         Attachments: JCR-714.patch
>
>
> A repository implementation might use a test root path that contains names that need _xXXXX_ escaping when used in XPath queries. Currently the TCK just uses the test path as-is when constructing queries. Even though this only affects few repositories (I've heard of one legacy connector to run into this problem), it would be good to add the proper escaping.

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