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

Unable to set role for user after changing his organization #109

Open
maccraymer opened this issue Jun 6, 2020 · 0 comments
Open

Unable to set role for user after changing his organization #109

maccraymer opened this issue Jun 6, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@maccraymer
Copy link

After changing a user's organization I get the following 500 error when trying to change the user's permissions in his new organization.

HTTP Status 500 – Internal Server Error
Type Exception Report
Message Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [uk_5ad8yawbym2uolno93wvhymua]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement

While logged into the staging instance under michel.craymer@canada.ca with administrator permissions and all roles enabled, there is a test user called Bob Plumb originally register under the Control Body organization with the Submitter role. I can change his organization by going to the "Users" folder and editing Bob Plumb and changing his organization from Control Body to U.S. National Geodetic Survey. I then go the "Organizations" folder and edit U.S. National Geodetic Survey where Bob Plumb now appears as a user. I select Permissions for Bob Plumb where his membership approval is now off and he has no roles. I am able to approve his membership without assigning any roles and select the Ok button. I can then select the Save button to successfully approve his membership. However, when I select Permissions again for Bob Plumb and change his role to Submitter, I get the above 500 error when I click the Save button. If I then change Bob Plumb's organization back to the Control Body that he was originally registered with, he reappears in that organization with the same permissions & roles he had before I tried to change his organization to U.S. National Geodetic Survey.

@maccraymer maccraymer added the bug Something isn't working label Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant