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 "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2014/01/10 15:39:51 UTC

[jira] [Commented] (OAK-1301) Path conditions not respected in XPath query

    [ https://issues.apache.org/jira/browse/OAK-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13867849#comment-13867849 ] 

Alex Parvulescu commented on OAK-1301:
--------------------------------------

I'm seeing the first issue (initial query not returning any rows), and it looks like a really easy fix.

However I'm having issues with the second issue (more rows than expected) because the details of the second tree are completely lacking. Please add more info to the '/home/groups/testing/socialgraph_test_group' part so I can debug. As it stands now, I cannot reproduce the issue.

> Path conditions not respected in XPath query
> --------------------------------------------
>
>                 Key: OAK-1301
>                 URL: https://issues.apache.org/jira/browse/OAK-1301
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 0.13
>            Reporter: Tobias Bocanegra
>            Assignee: Alex Parvulescu
>
> Given the following node:
> {noformat}
> /home/users/testing/socialgraph_test_user_4: {
> 	jcr:primaryType: "rep:User",
> 	rep:authorizableId: "socialgraph_test_user_4",
> 	social: 
{
> 		jcr:primaryType: "sling:Folder",
> 		relationships: 
{
> 			jcr:primaryType: "sling:Folder",
> 			friend: 
{
> 				jcr:primaryType: "sling:Folder",
> 				socialgraph_test_group: 
{
> 					jcr:primaryType: "nt:unstructured",
> 					id: "socialgraph_test_group"
> 				}
> 			}
> 		}
> 	}
> }
> /home/groups/testing/socialgraph_test_group: {
> 	...
> }
> {noformat}
> and the following query:
> {noformat}
> /jcr:root/home//social/relationships//*[id='socialgraph_test_group']
> {noformat}
> does not yield any results. however this query:
> {noformat}
> /jcr:root/home//*[id='socialgraph_test_group']
> {noformat}
> returns the following nodes:
> {noformat}
> /home/users/testing/socialgraph_test_user_4/social/relationships/friend/socialgraph_test_group
> /home/groups/testing/socialgraph_test_group
> /home/groups/testing/socialgraph_test_group/rep:policy/allow
> {noformat}
> Although the group nodes don't have the 'id' property.
> btw: this used to work as expected in Jackrabbit 2.x



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)