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

DV doesn't handle 404 pages gracefully #10900

Open
DonRichards opened this issue Oct 1, 2024 · 2 comments
Open

DV doesn't handle 404 pages gracefully #10900

DonRichards opened this issue Oct 1, 2024 · 2 comments
Labels
Type: Bug a defect

Comments

@DonRichards
Copy link

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).
  • When does this issue occur?
    This issue occurs when a user attempts to access a page that doesn't exist or when the OAI-PMH endpoint without the necessary query parameters.

  • Which page(s) does it occur on?

  1. The issue occurs on places where a 404 (page not found).
  2. The issue occurs on OAI-PMH endpoints of Dataverse instances when the request is missing required query parameters.
  • What happens?
    Instead of a clear error message or 404 page, the following error is displayed:
This page contains the following errors:
error on line 20 at column 178: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.
  • To whom does it occur (all users, curators, superusers)?
    all users

  • What did you expect to happen?
    I expected Dataverse to return a more meaningful error message, such as "404 Not Found" or a clear explanation indicating that the required query parameters were missing from the request.

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.

@DonRichards DonRichards added the Type: Bug a defect label Oct 1, 2024
@donsizemore
Copy link
Contributor

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

@pdurbin
Copy link
Member

pdurbin commented Oct 1, 2024

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

The original bug report is here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug a defect
Projects
None yet
Development

No branches or pull requests

3 participants