Skip to content

response code 500->409 for concurrent role assignment creations #11406

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jo-pol
Copy link
Contributor

@jo-pol jo-pol commented Apr 8, 2025

What this PR does / why we need it:

With concurrent API calls to Datasets.createAssignment you could get a response code 500 "transaction aborted" with details only in the server logs. This PR changes the response into: code 409 (conflict) "User already has this role for this dataset".

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer:

Suggestions on how to test this:

Run a script with at least two threads. Each thread executes a single loop that adds an deletes the same role-assignment.

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?:

Additional documentation:

@jo-pol jo-pol changed the title 500->409 for concurrent updates response code 500->409 for concurrent role assignment creations Apr 8, 2025
@pdurbin pdurbin moved this to Ready for Triage in IQSS Dataverse Project Apr 8, 2025
@pdurbin pdurbin added Type: Bug a defect Feature: Permissions Size: 3 A percentage of a sprint. 2.1 hours. labels Apr 8, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project Apr 8, 2025
@cmbz cmbz added FY25 Sprint 20 FY25 Sprint 20 (2025-03-26 - 2025-04-09) FY25 Sprint 21 FY25 Sprint 21 (2025-04-09 - 2025-04-23) labels Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Permissions FY25 Sprint 20 FY25 Sprint 20 (2025-03-26 - 2025-04-09) FY25 Sprint 21 FY25 Sprint 21 (2025-04-09 - 2025-04-23) Size: 3 A percentage of a sprint. 2.1 hours. Type: Bug a defect
Projects
Status: Ready for Review ⏩
Development

Successfully merging this pull request may close these issues.

3 participants