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 "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2014/01/13 20:10:54 UTC
[jira] [Comment Edited] (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=13869846#comment-13869846 ]
Tobias Bocanegra edited comment on OAK-1301 at 1/13/14 7:10 PM:
----------------------------------------------------------------
the structure is:
{noformat:title=/home/groups/testing}{
jcr:primaryType: "rep:AuthorizableFolder",
socialgraph_test_group: {
jcr:primaryType: "rep:Group",
jcr:mixinTypes: [
"rep:AccessControllable"
],
rep:principalName: "socialgraph_test_group",
jcr:uuid: "0076c423-b45f-34e3-9196-dab6ed4411e2",
rep:members: [
"0b456c64-1a6b-3302-a055-b6bf1b684faf",
"52ba6b79-4c7a-389d-82f4-0a0341cf6c53",
"b41f995b-fed3-3e1e-8b54-37f6ff98ecea"
],
rep:authorizableId: "socialgraph_test_group",
rep:policy: {
jcr:primaryType: "rep:ACL",
allow: {
jcr:primaryType: "rep:GrantACE",
rep:principalName: "socialgraph_test_group",
rep:privileges: [
"jcr:read"
]
}
}
}
}
{noformat}
was (Author: tripod):
the structure is:
{noformat:title=/home/groups/testing/socialgraph_test_group}{
jcr:primaryType: "rep:AuthorizableFolder",
socialgraph_test_group: {
jcr:primaryType: "rep:Group",
jcr:mixinTypes: [
"rep:AccessControllable"
],
rep:principalName: "socialgraph_test_group",
jcr:uuid: "0076c423-b45f-34e3-9196-dab6ed4411e2",
rep:members: [
"0b456c64-1a6b-3302-a055-b6bf1b684faf",
"52ba6b79-4c7a-389d-82f4-0a0341cf6c53",
"b41f995b-fed3-3e1e-8b54-37f6ff98ecea"
],
rep:authorizableId: "socialgraph_test_group",
rep:policy: {
jcr:primaryType: "rep:ACL",
allow: {
jcr:primaryType: "rep:GrantACE",
rep:principalName: "socialgraph_test_group",
rep:privileges: [
"jcr:read"
]
}
}
}
}
{noformat}
> 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)