Skip to content

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

Merged
stevenwinship merged 2 commits intoIQSS:developfrom
vera:feat/handle-double-role-assignments
Feb 26, 2026
Merged

Handle duplicate role assignments with 409 Conflict instead of 403 Forbidden#12134
stevenwinship merged 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
@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Feb 24, 2026
@scolapasta scolapasta removed their assignment Feb 24, 2026
@cmbz cmbz added the FY26 Sprint 18 FY26 Sprint 18 (2026-02-25 - 2026-03-11) label Feb 26, 2026
@stevenwinship stevenwinship self-assigned this Feb 26, 2026
@stevenwinship stevenwinship moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Feb 26, 2026
@stevenwinship stevenwinship merged commit 37b0bdd into IQSS:develop Feb 26, 2026
14 of 15 checks passed
@github-project-automation github-project-automation bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Feb 26, 2026
@stevenwinship stevenwinship removed their assignment Feb 26, 2026
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Feb 26, 2026
@pdurbin pdurbin added this to the 6.10 milestone Mar 4, 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) FY26 Sprint 18 FY26 Sprint 18 (2026-02-25 - 2026-03-11)

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

403 Forbidden when assigning duplicate role

5 participants