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

Permissions: If attempt to access unpublished dv as registered user without perms, get log in page. #1057

Closed
kcondon opened this issue Nov 3, 2014 · 8 comments
Assignees
Labels
Type: Bug a defect UX & UI: Design This issue needs input on the design of the UI and from the product owner
Milestone

Comments

@kcondon
Copy link
Contributor

kcondon commented Nov 3, 2014

I attempted to paste the url for root dv into the browser when logged in as a user without perms:
https://dvn-build.hmdc.harvard.edu/dataverse.xhtml?id=287

It sent me to the log in page even though the navbar showed that I was still logged in.

@kcondon kcondon added UX & UI: Design This issue needs input on the design of the UI and from the product owner Priority: Medium Type: Bug a defect labels Nov 3, 2014
@kcondon kcondon added this to the Beta 8 - Dataverse 4.0 milestone Nov 3, 2014
@scolapasta
Copy link
Contributor

This is because on build guest still had a role with the "discover" permission. I went ahead and removd that role assignment and it's all set.

@kcondon
Copy link
Contributor Author

kcondon commented Nov 3, 2014

This is not the guest issue, it is a registered user, sending back.

@scolapasta
Copy link
Contributor

Assigning to @eaquigley do decide what the best workflow should be. Right now the logic on dataverse and datset check if you have access and if not send you to login. This is perfect if a guest user, but what should it do if you are registered. Still go here so you can log in as someone else? Or should it go somewhere else, saying you don't have access. (and then what options should it present)

@scolapasta scolapasta assigned eaquigley and unassigned scolapasta Nov 11, 2014
@eaquigley
Copy link
Contributor

instead of taking the user to the log in page, for 4.0, i'd like this to take them to the 404 page.

@scolapasta scolapasta removed this from the Beta 9 - Dataverse 4.0 milestone Dec 3, 2014
@scolapasta scolapasta modified the milestones: 4.0 Messaging (Part of Beta 10), Beta 10 - Dataverse 4.0 Dec 5, 2014
@scolapasta scolapasta modified the milestones: 4.0 Messaging (Part of Beta 10), Beta 11 - Dataverse 4.0 Dec 19, 2014
@scolapasta scolapasta modified the milestones: 4.01, Beta 11 - Dataverse 4.0 Jan 9, 2015
@mheppler
Copy link
Contributor

Duplicate issue of this was created and closed.

Dataverse/Dataset (Unpublished) - No Access/Permsission Landing Page #1704

Related to 404 issue.

404 Not Found - Browser Gets Forwarded to /404.xhtml #2367

@sekmiller
Copy link
Contributor

To differentiate between a url that yields an object that is not found and one that is found, but the session user does not have permission to view, I have added a 403.xhtml page

@sekmiller sekmiller assigned sekmiller and unassigned scolapasta Jul 22, 2015
@sekmiller sekmiller modified the milestones: 4.1, In Review Jul 22, 2015
@sekmiller
Copy link
Contributor

Added redirect logic for Dataverse and Dataset pages

@kcondon
Copy link
Contributor Author

kcondon commented Jul 22, 2015

OK, works for logged in user without sufficient perms, for user who is not logged in, they go to the log in page. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug a defect UX & UI: Design This issue needs input on the design of the UI and from the product owner
Projects
None yet
Development

No branches or pull requests

5 participants