Skip to content

Handle duplicate role assignments with 409 Conflict instead of 403 Forbidden#12134

Open
vera wants to merge 2 commits intoIQSS:developfrom
vera:feat/handle-double-role-assignments
Open

Handle duplicate role assignments with 409 Conflict instead of 403 Forbidden#12134
vera wants to merge 2 commits intoIQSS:developfrom
vera:feat/handle-double-role-assignments

Conversation

@vera
Copy link
Contributor

@vera vera commented Feb 2, 2026

What this PR does / why we need it:

This PR changes the return code when trying to create a duplicate role assignment from 403 Forbidden to 409 Conflict, which seems to make more sense.

Which issue(s) this PR closes:

Special notes for your reviewer:

/

Suggestions on how to test this:

I've added a test: mvn test -Dtest="DataversesIT#testAssignRoleOnDataverse"

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

/

Is there a release notes update needed for this change?:

Not sure

Additional documentation:

/

@pdurbin pdurbin moved this to Ready for Triage in IQSS Dataverse Project Feb 2, 2026
@scolapasta scolapasta moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready for Review ⏩

Development

Successfully merging this pull request may close these issues.

403 Forbidden when assigning duplicate role

1 participant