Skip to content

XML Parsing Updates#11619

Merged
ofahimIQSS merged 15 commits intoIQSS:developfrom
GlobalDataverseCommunityConsortium:xmlutil
Jul 15, 2025
Merged

XML Parsing Updates#11619
ofahimIQSS merged 15 commits intoIQSS:developfrom
GlobalDataverseCommunityConsortium:xmlutil

Conversation

@qqmyers
Copy link
Copy Markdown
Member

@qqmyers qqmyers commented Jul 8, 2025

What this PR does / why we need it: This PR centralizes creation of the various XML parsers used in Dataverse in a new util class and turns on recommended options.

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer: FWIW: For the XMLInputFactory class creation, the XMLInputFactory.IS_COALESCING flag was not consistently true in all uses in the code, but it I saw no code that would require it to be false and I'm guessing that the places it wasn't used, we weren't expecting CData sections.

I also caught/added a final close for some uses of the XMLStreamReader.

Suggestions on how to test this: Nominally this should not change parsing of our expected XML inputs. Aside from unit tests, we should assure that the changes don't break Harvesting (e.g. from DataCite) and ORCID linking/logging.

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 mentioned this pull request Jul 8, 2025
@qqmyers qqmyers marked this pull request as ready for review July 9, 2025 12:21
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 9, 2025

Coverage Status

coverage: 23.186% (+0.03%) from 23.161%
when pulling 3e42ad6 on GlobalDataverseCommunityConsortium:xmlutil
into 7e16ed3 on IQSS:develop.

@qqmyers
Copy link
Copy Markdown
Member Author

qqmyers commented Jul 9, 2025

After triggering two flaky test fails - see #11620 for one, the other is a ~timing deadlock trying to delete the dataset while the publishing onSuccess had yet to finish - this has passed all tests and should be ready for review.

@qqmyers qqmyers moved this to Ready for Review ⏩ in IQSS Dataverse Project Jul 9, 2025
@qqmyers qqmyers added this to the 6.7 milestone Jul 9, 2025
@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Jul 9, 2025
@stevenwinship stevenwinship moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Jul 10, 2025
@stevenwinship stevenwinship self-assigned this Jul 10, 2025
@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Jul 10, 2025
@stevenwinship stevenwinship removed their assignment Jul 10, 2025
@ofahimIQSS ofahimIQSS self-assigned this Jul 11, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Jul 11, 2025
@cmbz cmbz added the FY26 Sprint 1 FY26 Sprint 1 (2025-07-02 - 2025-07-16) label Jul 11, 2025
@ofahimIQSS
Copy link
Copy Markdown
Contributor

cleared from my end - will do further regression testing on harvesting.

@ofahimIQSS ofahimIQSS merged commit 0964e81 into IQSS:develop Jul 15, 2025
16 checks passed
@github-project-automation github-project-automation Bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Jul 15, 2025
@ofahimIQSS ofahimIQSS removed their assignment Jul 15, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Jul 15, 2025
@cmbz cmbz added the FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) label Aug 16, 2025
ubkm added a commit to DataverseNO/dataverse that referenced this pull request Aug 21, 2025
ubkm added a commit to DataverseNO/dataverse that referenced this pull request Aug 21, 2025
ubkm added a commit to DataverseNO/dataverse that referenced this pull request Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 1 FY26 Sprint 1 (2025-07-02 - 2025-07-16) FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) Size: 3 A percentage of a sprint. 2.1 hours.

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

6 participants