You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2013/09/03 17:39:51 UTC
[jira] [Commented] (OAK-989) Query parser doesn't decode paths
[ https://issues.apache.org/jira/browse/OAK-989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756704#comment-13756704 ]
Thomas Mueller commented on OAK-989:
------------------------------------
I was trying to write a test case. It works for queries of the form: {{/jcr:root/hel_x006c_o/*}}, which is converted to the SQL-2 query
{code}
select [jcr:path], [jcr:score], *
from [nt:base] as a
where ischildnode(a, '/hel_x006c_o')
{code}
however it doesn't work for queries of the form: {{//hel_x006c_o}}, which is converted to
{code}
select [jcr:path], [jcr:score], *
from [nt:base] as a
where name(a) = 'hel_x006c_o'
{code}
I will try to come up with a solution that covers those cases as well.
> Query parser doesn't decode paths
> ---------------------------------
>
> Key: OAK-989
> URL: https://issues.apache.org/jira/browse/OAK-989
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core, query
> Reporter: Alex Parvulescu
> Assignee: Alex Parvulescu
> Fix For: 0.9
>
>
> The SQL2 parser doesn't correctly decode the path constraints, which can result in queries with no result.
> The fix is to apply a _ISO9075#decode_ similar to the way Jackrabbit did it.
--
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