Skip to content
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

7431 fixing invalid oai pmh response #7974

Merged
merged 2 commits into from
Jun 30, 2021

Conversation

pkiraly
Copy link
Member

@pkiraly pkiraly commented Jun 24, 2021

What this PR does / why we need it: The ListRecords OAI-PMH response contains XML prolog for each records, which makes the XML invalid.

Which issue(s) this PR closes:

Closes #7431

Special notes for your reviewer: ListRecords did not had any integration tests, now I added some.

Suggestions on how to test this: It extends the integration tests in HarvestingServerIT.testOaiFunctionality() method. You can also test it via checking the URL https://localhost:8080/oai?verb=ListRecords&metadataPrefix=Datacite in a browser. (Note: there might be other XML issues independent from this one, e.g. the dataverse-sample-data project creates dataset which has a '&' character in a field, and it is not escaped into '&' as expected.)

Does this PR introduce a user interface change? If mockups are available, please link/include them here: no

Is there a release notes update needed for this change?: It might be mention that this issue has been fixed and it improves the interoperability of Dataverse, since this issue breaks not just the browser display, but triggers and error in the XML processors of the harvesters.

Additional documentation: no

@sekmiller sekmiller self-assigned this Jun 29, 2021
Copy link
Contributor

@sekmiller sekmiller left a comment

Choose a reason for hiding this comment

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

Looks good. thanks for adding the test. passing to QA

@sekmiller sekmiller removed their assignment Jun 29, 2021
@kcondon kcondon self-assigned this Jun 29, 2021
@kcondon kcondon merged commit 9792ab0 into IQSS:develop Jun 30, 2021
@djbrooke djbrooke added this to the 5.6 milestone Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid OAI-PMH response
5 participants