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
@cmbz cmbz added FY26 Sprint 16 FY26 Sprint 16 (2026-01-28 - 2026-02-11) FY26 Sprint 17 FY26 Sprint 17 (2026-02-11 - 2026-02-25) labels Feb 11, 2026
@scolapasta scolapasta moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Feb 17, 2026
@scolapasta scolapasta self-assigned this Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 16 FY26 Sprint 16 (2026-01-28 - 2026-02-11) FY26 Sprint 17 FY26 Sprint 17 (2026-02-11 - 2026-02-25)

Projects

Status: In Review 🔎

Development

Successfully merging this pull request may close these issues.

403 Forbidden when assigning duplicate role

3 participants

Comments