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

Return a 404 when /report/ or /resource/ doesn't lead to an existing resource #11772

Closed
whatisgalen opened this issue Feb 6, 2025 · 1 comment · May be fixed by #11778
Closed

Return a 404 when /report/ or /resource/ doesn't lead to an existing resource #11772

whatisgalen opened this issue Feb 6, 2025 · 1 comment · May be fixed by #11778
Assignees

Comments

@whatisgalen
Copy link
Member

In debug mode, the error you see when you try to go to a report for a non-existent resource is:

DoesNotExist at /report/edb83d95-543e-4d01-98b9-abdbd3212763

...which shows up as a 500 in production because the DoesNotExist exception is unhandled by the Report view. It should actually be a 404 since the resource sought was not found.

@jacobtylerwalls
Copy link
Member

Fixed in #11637

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

Successfully merging a pull request may close this issue.

2 participants