[Sakai Jira] Created: (KERN-1126) Group search not returning all groups

3 views
Skip to first unread message

Chris Roby (JIRA)

unread,
Sep 22, 2010, 2:18:41 PM9/22/10
to sakai-...@googlegroups.com
Group search not returning all groups
-------------------------------------

Key: KERN-1126
URL: http://jira.sakaiproject.org/browse/KERN-1126
Project: Nakamura
Issue Type: Bug
Components: UserManagement - All - default
Affects Versions: 0.8
Reporter: Chris Roby
Priority: Blocker
Fix For: 0.9


# create two groups
curl -d":name=group1" -d":sakai:manager=user1" -d"sakai:group-title=Group 1" -d"sakai:group-description=description of group1" -d"sakai:group-id=group1" -d"sakai:group-joinable=Managers add people" -d"sakai:group-visible=Anyone on the Internet" -d"sakai:pages-visible=Anyone on the Internet" -d"sling:resourceType=sakai/group-home" -d":sakai:pages-template=/var/templates/site/defaultgroup" http://admin:admin@localhost:8080/system/userManager/group.create.html

curl -d":name=group2" -d":sakai:manager=user2" -d"sakai:group-title=Group 2" -d"sakai:group-description=description of group2" -d"sakai:group-id=group2" -d"sakai:group-joinable=Managers add people" -d"sakai:group-visible=Anyone on the Internet" -d"sakai:pages-visible=Anyone on the Internet" -d"sling:resourceType=sakai/group-home" -d":sakai:pages-template=/var/templates/site/defaultgroup" http://admin:admin@localhost:8080/system/userManager/group.create.html

# set their permissions
curl -d"principalId=everyone" -d"privilege@jcr:read=granted" http://admin:admin@localhost:8080/~group1.modifyAce.html
curl -d"principalId=anonymous" -d"privilege@jcr:read=granted" http://admin:admin@localhost:8080/~group1.modifyAce.html

curl -d"principalId=everyone" -d"privilege@jcr:read=granted" http://admin:admin@localhost:8080/~group2.modifyAce.html
curl -d"principalId=anonymous" -d"privilege@jcr:read=granted" http://admin:admin@localhost:8080/~group2.modifyAce.html

# Search
curl -u user1:test http://localhost:8080/var/search/groups.json?q=*group*

{
"items":25,
"results":
[
{
"sakai:managers-group":"group1-managers",
"jcr:path":"/_group/g/gr/group1/public/authprofile",
"sakai:group-description":"description of group1",
"sakai:group-title":"Group 1",
"sakai:group-joinable":"Managers add people",
"rep:policy":
{
"jcr:path":"/_group/g/gr/group1/public/authprofile/rep:policy",
"allow":
{
"jcr:path":"/_group/g/gr/group1/public/authprofile/rep:policy/allow",
"rep:principalName":"group1",
"rep:privileges":
[
"jcr:all"
],
"jcr:name":"allow",
"jcr:primaryType":"rep:GrantACE"
},
"jcr:name":"rep:policy",
"jcr:primaryType":"rep:ACL"
},
"sakai:pages-visible":"Anyone on the Internet",
"jcr:uuid":"1e26a3d6-8999-4e78-9b28-d6ffb2144dba",
"jcr:mixinTypes":
[
"mix:referenceable",
"rep:AccessControllable"
],
"sling:resourceType":"sakai/group-home",
"sakai:group-id":"group1",
"jcr:name":"authprofile",
"path":"/g/gr/group1",
"sakai:group-visible":"Anyone on the Internet",
"jcr:primaryType":"nt:unstructured",
"user":"group1",
"sakai:status":"offline",
"sakai:location":"none"
}
],
"total":1
}

curl -u user2:test http://localhost:8080/var/search/groups.json?q=*group*

{
"items":25,
"results":
[
{
"sakai:managers-group":"group2-managers",
"jcr:path":"/_group/g/gr/group2/public/authprofile",
"sakai:group-description":"description of group2",
"sakai:group-title":"Group 2",
"sakai:group-joinable":"Managers add people",
"rep:policy":
{
"jcr:path":"/_group/g/gr/group2/public/authprofile/rep:policy",
"allow":
{
"jcr:path":"/_group/g/gr/group2/public/authprofile/rep:policy/allow",
"rep:principalName":"group2",
"rep:privileges":
[
"jcr:all"
],
"jcr:name":"allow",
"jcr:primaryType":"rep:GrantACE"
},
"jcr:name":"rep:policy",
"jcr:primaryType":"rep:ACL"
},
"sakai:pages-visible":"Anyone on the Internet",
"jcr:uuid":"ae9f8197-d1d5-44bd-ad49-d52cafb3245a",
"jcr:mixinTypes":
[
"mix:referenceable",
"rep:AccessControllable"
],
"sling:resourceType":"sakai/group-home",
"sakai:group-id":"group2",
"jcr:name":"authprofile",
"path":"/g/gr/group2",
"sakai:group-visible":"Anyone on the Internet",
"jcr:primaryType":"nt:unstructured",
"user":"group2",
"sakai:status":"offline",
"sakai:location":"none"
}
],
"total":1
}


Only groups that the user is a manager of are returned. Other groups, which should be searchable, are not returned.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.sakaiproject.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Carl Hall (JIRA)

unread,
Sep 22, 2010, 6:04:41 PM9/22/10
to sakai-...@googlegroups.com

[ http://jira.sakaiproject.org/browse/KERN-1126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Hall reassigned KERN-1126:
-------------------------------

Assignee: Carl Hall

> Group search not returning all groups
> -------------------------------------
>
> Key: KERN-1126
> URL: http://jira.sakaiproject.org/browse/KERN-1126
> Project: Nakamura
> Issue Type: Bug
> Components: UserManagement - All - default
> Affects Versions: 0.8
> Reporter: Chris Roby

> Assignee: Carl Hall

Carl Hall (JIRA)

unread,
Sep 23, 2010, 6:14:28 PM9/23/10
to sakai-...@googlegroups.com

[ http://jira.sakaiproject.org/browse/KERN-1126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Hall resolved KERN-1126.
-----------------------------

Resolution: Fixed

Through some other code commits, this has been fixed. Magic!

> Group search not returning all groups
> -------------------------------------
>
> Key: KERN-1126
> URL: http://jira.sakaiproject.org/browse/KERN-1126
> Project: Nakamura
> Issue Type: Bug
> Components: UserManagement - All - default
> Affects Versions: 0.8
> Reporter: Chris Roby

> Assignee: Carl Hall

Reply all
Reply to author
Forward
0 new messages