Skip to content

DD-1988 - Fix /api/admin/validate/dataset/files/{id} error response#11749

Merged
ofahimIQSS merged 1 commit into
IQSS:developfrom
GlobalDataverseCommunityConsortium:DD-1988-500_error_validating_files
Aug 27, 2025
Merged

DD-1988 - Fix /api/admin/validate/dataset/files/{id} error response#11749
ofahimIQSS merged 1 commit into
IQSS:developfrom
GlobalDataverseCommunityConsortium:DD-1988-500_error_validating_files

Conversation

@qqmyers
Copy link
Copy Markdown
Member

@qqmyers qqmyers commented Aug 17, 2025

What this PR does / why we need it: As reported internally at DANS (DD-1988), when the /api/admin/validate/dataset/files/{id} API call is called with a non-existent PID/id, the error response is 500 rather than 404. This PR corrects that.

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer:

Suggestions on how to test this: Call the api above with a made up PID/id, verify that it produces a 500 error before and a 404 error after the PR.

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 Size: 0.5 A percentage of a sprint. 0.35 hours label Aug 17, 2025
@qqmyers qqmyers moved this to Ready for Triage in IQSS Dataverse Project Aug 17, 2025
@qqmyers qqmyers added this to the 6.8 milestone Aug 17, 2025
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 23.199%. remained the same
when pulling c4206f0 on GlobalDataverseCommunityConsortium:DD-1988-500_error_validating_files
into 8592e63 on IQSS:develop.

@ofahimIQSS ofahimIQSS moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project Aug 19, 2025
@github-project-automation github-project-automation Bot moved this from Ready for Review ⏩ to Ready for QA ⏩ in IQSS Dataverse Project Aug 20, 2025
@ofahimIQSS ofahimIQSS self-assigned this Aug 21, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Aug 21, 2025
@ofahimIQSS
Copy link
Copy Markdown
Contributor

fix looks good, now getting 404 vs 500 response for invalid PIDs.
image

@ofahimIQSS ofahimIQSS merged commit 5e55658 into IQSS:develop Aug 27, 2025
16 checks passed
@github-project-automation github-project-automation Bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Aug 27, 2025
@ofahimIQSS ofahimIQSS removed their assignment Aug 27, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Aug 27, 2025
aliassheikh added a commit to DANS-KNAW/dataverse that referenced this pull request Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: 0.5 A percentage of a sprint. 0.35 hours

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

5 participants