Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1301

Path conditions not respected in XPath query

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13
    • 0.15
    • doc, query
    • None

    Description

      Given the following node:

      /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: {
      	...
      }
      

      and the following query:

      /jcr:root/home//social/relationships//*[id='socialgraph_test_group']
      

      does not yield any results. however this query:

      /jcr:root/home//*[id='socialgraph_test_group']
      

      returns the following nodes:

      /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
      

      Although the group nodes don't have the 'id' property.

      btw: this used to work as expected in Jackrabbit 2.x

      Attachments

        Issue Links

          Activity

            People

              stillalex Alex Deparvu
              tripod Tobias Bocanegra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: