Skip to content

Fix GET /settings/name 500 error - #12239

Merged
sekmiller merged 1 commit into
IQSS:developfrom
QualitativeDataRepository:Get_settings_fix
Jun 5, 2026
Merged

Fix GET /settings/name 500 error#12239
sekmiller merged 1 commit into
IQSS:developfrom
QualitativeDataRepository:Get_settings_fix

Conversation

@qqmyers

@qqmyers qqmyers commented Mar 20, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it: It doesn't look like the /api/admin/settings/{name} call was updated correctly when validation was added. This PR catches the correct exception type to return a 400 {"status":"ERROR","message":"The name of the setting is invalid."} response instead of a 500 and a stack trace in the log for a bad setting name.

Which issue(s) this PR closes:

Special notes for your reviewer:
#12077 suggests a larger refactor, but it would be good to have some fix.

Suggestions on how to test this: Call http://localhost:8080/api/admin/settings/badsetting before and after the PR. Note the error fix

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:

@qqmyers qqmyers added the GDCC: QDR of interest to QDR label Mar 20, 2026
@qqmyers qqmyers added this to the 6.11 milestone Mar 20, 2026
@qqmyers qqmyers added the Type: Bug a defect label Mar 20, 2026
@cmbz cmbz moved this to Ready for Review ⏩ in IQSS Dataverse Project Jun 3, 2026
@cmbz cmbz added the FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) label Jun 3, 2026
@stevenwinship stevenwinship self-assigned this Jun 4, 2026
@stevenwinship stevenwinship moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Jun 4, 2026
@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Jun 4, 2026
@stevenwinship stevenwinship removed their assignment Jun 4, 2026
@sekmiller sekmiller moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Jun 5, 2026
@sekmiller sekmiller self-assigned this Jun 5, 2026
@sekmiller
sekmiller merged commit 4ce883c into IQSS:develop Jun 5, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Jun 5, 2026
@pdurbin pdurbin moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) GDCC: QDR of interest to QDR Type: Bug a defect

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

/api/admin/settings/<name> returns 500 error (vs 400) for invalid setting

5 participants