Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index: Cannot see unpublished dv or ds if assigned proper view perms as IPGroup. #1513

Closed
kcondon opened this issue Feb 25, 2015 · 8 comments

Comments

@kcondon
Copy link
Contributor

kcondon commented Feb 25, 2015

I've directly assigned admin role/ view unpublished dv/ds to an ipgroup but still cannot see the unpublished dv/ds cards, though I can see the role assignment on the permissions page. I can go directly to the landing pages for both and the permissions page for both as a member of the ip group.

@kcondon kcondon added this to the In Review - 4.0 milestone Feb 25, 2015
@scolapasta scolapasta modified the milestones: 4.0.4, In Review - 4.0 Mar 2, 2015
@scolapasta scolapasta modified the milestones: 4.0.4, In Review - Short Term Apr 18, 2015
@scolapasta scolapasta removed this from the Not Assigned to a Release milestone Jan 28, 2016
@eaquigley eaquigley changed the title Index: Cannot see unpublised dv or ds if assigned proper view perms as IPGroup. Index: Cannot see unpublished dv or ds if assigned proper view perms as IPGroup. Mar 31, 2016
@scolapasta
Copy link
Contributor

Please retest.

Be aware that IPGroups cannot have edit typer permissions, just read permissions.

@kcondon
Copy link
Contributor Author

kcondon commented Apr 28, 2016

Waiting for #1380 to be fixed before we can test.

@kcondon
Copy link
Contributor Author

kcondon commented Jul 15, 2016

Related, possibly a duplicate: #3105

@kcondon kcondon removed their assignment Jul 19, 2016
@pdurbin pdurbin added the ready label Aug 3, 2016
@pdurbin pdurbin self-assigned this Aug 3, 2016
@pdurbin
Copy link
Member

pdurbin commented Aug 3, 2016

Today @michbarsinai @scolapasta @kcondon and I discussed IP groups and I've been asked to try to reproduce this bug in the branch that pull request #3103 is based on. It's believed this is still a bug.

@pdurbin pdurbin added in progress and removed ready labels Aug 4, 2016
@pdurbin
Copy link
Member

pdurbin commented Aug 4, 2016

I can easily reproduce this bug by giving an IP Group "admin" on an unpublished non-root dataverse, which should result in the "Guest" user being able to see a search card for the unpublished dataverse.

Interestingly, the indexing seems fine. The unpublished dataverse in question says it's discoverable by the IP Group: "discoverableBy":["group_ip/ipGroup3", "group_user5"]

The problem is at runtime we need a method in Dataverse to provide a list of all the IP Groups that a user (such as Guest) is a member of. This strongly reminds me of the public Set<Group> groupsFor(AuthenticatedUser au) method I introduced in pull request #3062 but in the code you can see I wrote @todo Determine if this method works with IP Groups. Sadly, it seems the answer is no and since @michbarsinai is in town I plan to see if he can help with this.

pdurbin added a commit that referenced this issue Aug 5, 2016


This commit affects Saved Search and MyData.
@pdurbin
Copy link
Member

pdurbin commented Aug 5, 2016

Some initial progress in e6438c7 but a bit rushed. Ideally I'd add some API tests.

@djbrooke djbrooke added this to the 4.6 - File Replace milestone Aug 9, 2016
@kcondon
Copy link
Contributor Author

kcondon commented Aug 12, 2016

This is working now. Phil, we can close this unless there is something more you want to do.

@pdurbin
Copy link
Member

pdurbin commented Aug 19, 2016

@kcondon I'm glad to hear e6438c7 helped. It's in pull request #3103. I'll close this issue but I'll note that #3273 is still open which is about "groups within groups".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants