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

Assigning Roles: Assigning a duplicate role results in less helpful message. #2928

Closed
kcondon opened this issue Feb 8, 2016 · 1 comment
Closed

Comments

@kcondon
Copy link
Contributor

kcondon commented Feb 8, 2016

When I attempt to assign the same role to the same user, it fails and presents an error in the ui:
The role was not able to be assigned. Please contact support. Date/Time: 2016-02-08 16:47:16 Server: dataverse-internal.iq.harvard.edu

I was doing something not allowed but this could happen with long lists of users and it would be better if the message said This role has already been assigned or something like that since the server log error reports:

Internal Exception: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "unq_roleassignment_0"
Detail: Key (assigneeidentifier, role_id, definitionpoint_id)=(@dataverseAdmin, 1, 5) already exists.

@mheppler
Copy link
Contributor

@kcondon - is this issue a duplicate of #1503?

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

2 participants