Skip to content

Conversation

@qqmyers
Copy link
Member

@qqmyers qqmyers commented Jan 22, 2026

What this PR does / why we need it: As noted in #11976, attempting to replace a non-tabular file was failing due to a change made in v6.8. This PR has a fix.

Which issue(s) this PR closes:

Special notes for your reviewer: The bug happens when the OptionalFileParams is created from the existing file (as in the JSF UI) but not when it is created from JSON - as from the current API which requires you to send the metadata rather than allowing you to just replace the file and use the current metadata - as long as you don't send a dataFileTags array (even empty). (FWIW: There was a test reported in the issue with the SPA where replace works. I think that's because the SPA doesn't send "dataFileTags":[] in it's JSON - unlike how it sends "categories":[]. If I make the same API call with an empty dataFileTags array it fails the same way as the JSF UI.)

Suggestions on how to test this: Click replace for a non-tabular file and see it fail/succeed 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?: included.

Additional documentation:

@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Jan 22, 2026
@qqmyers qqmyers moved this to Ready for Triage in IQSS Dataverse Project Jan 22, 2026
@coveralls
Copy link

Coverage Status

coverage: 24.336%. remained the same
when pulling 400e65b on GlobalDataverseCommunityConsortium:IQSS-11976-fix_file-replace
into a843c84 on IQSS:develop.

Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a reasonable fix. Approving.

@github-project-automation github-project-automation bot moved this from Ready for Triage to Ready for QA ⏩ in IQSS Dataverse Project Jan 23, 2026
@pdurbin pdurbin added this to the 6.10 milestone Jan 23, 2026
@cmbz cmbz added FY26 Sprint 15 FY26 Sprint 15 (2026-01-14 - 2026-01-28) FY26 Sprint 16 FY26 Sprint 16 (2026-01-28 - 2026-02-11) labels Jan 29, 2026
@stevenwinship stevenwinship self-assigned this Feb 9, 2026
@stevenwinship stevenwinship moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Feb 9, 2026
@stevenwinship stevenwinship merged commit 0b78ff8 into IQSS:develop Feb 9, 2026
15 checks passed
@github-project-automation github-project-automation bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Feb 9, 2026
@stevenwinship stevenwinship removed their assignment Feb 9, 2026
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 15 FY26 Sprint 15 (2026-01-14 - 2026-01-28) FY26 Sprint 16 FY26 Sprint 16 (2026-01-28 - 2026-02-11) Size: 3 A percentage of a sprint. 2.1 hours.

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

Error when trying to replace a file through web interface

5 participants