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

#7023 Replace xml response substring in logging with URL parameters. … #7024

Merged
merged 1 commit into from Jul 2, 2020
Merged

#7023 Replace xml response substring in logging with URL parameters. … #7024

merged 1 commit into from Jul 2, 2020

Conversation

JingMa87
Copy link
Contributor

@JingMa87 JingMa87 commented Jun 26, 2020

…Couldn't write the whole URL because the "&" gets written as the character entity "&" as the log is an XML.

What this PR does / why we need it: Improve logging for debugging purposes

Which issue(s) this PR closes: 7023

Closes #7023

Special notes for your reviewer: Already tested it locally.

Suggestions on how to test this: Run a harvest on https://dataverse.nl/oai with oai_dc as prefix and dataversenl as set. Around line 68642 of the log you will see the line. Search for "Error calling GetRecord - Failed to parse GetRecord response".

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?: No

Additional documentation:

…Couldn't write the whole URL because the "&" gets written as the character entity "&" as the log is an XML.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0006%) to 19.558% when pulling f6d336b on JingMa87:7023-replace-xml-with-url into b97185a 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.

The fix looks good to me and I noticed that an example of the oaiResponseHeader (what we return now) is in the issue. Thanks, @JingMa87 .

IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Code Review 🦁 to QA 🔎✅ Jun 26, 2020
@kcondon kcondon self-assigned this Jul 2, 2020
@kcondon kcondon merged commit c5c2236 into IQSS:develop Jul 2, 2020
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from QA 🔎✅ to Done 🚀 Jul 2, 2020
@JingMa87 JingMa87 deleted the 7023-replace-xml-with-url branch July 2, 2020 17:47
@djbrooke djbrooke added this to the Dataverse 5 milestone Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Replace OAI response substring with request URL
5 participants