IQSS / dataverse

Open source research data repository software
http://dataverse.org
Other
882 stars 494 forks source link

DV doesn't handle 404 pages gracefully #10900

Open DonRichards opened 1 month ago

DonRichards commented 1 month ago

What steps does it take to reproduce the issue?

  1. Navigate to an URL that doesn't exist.
  2. Or access the endpoint without including the required query parameters. Example: Accessing https://archive.jhu.edu/oai without specifying the verb query parameter (e.g., https://archive.jhu.edu/oai?verb=Identify).

Which version of Dataverse are you using? v6.1

Any related open or closed issues to this bug report? No related issues found.

Screenshots:

Screenshot from 2024-10-01 09-18-25

Are you thinking about creating a pull request for this issue? No, sorry.

donsizemore commented 1 month ago

@DonRichards I don't get the same behavior on v6.4: https://demo.dataverse.org/oai

pdurbin commented 1 month ago

Thanks for the bug report. I think we fixed this in 6.2:

The original bug report is here:

DonRichards commented 1 month ago

“I’ve updated to version 6.2, and I’m encountering an error related to configuration issues. While the 404 page aspect appears to be resolved, I expected that most application functionality would be protected by try/catch mechanisms to prevent this type of error. After following the release notes for updating the domain.xml for multiple PID providers, I inadvertently introduced an issue that triggered this error. Should I create a new ticket?

pdurbin commented 1 month ago

@DonRichards yes, please! ❤️