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

Unavailable web page asset leads to panic #130

Open
mpsonntag opened this issue May 13, 2022 · 0 comments
Open

Unavailable web page asset leads to panic #130

mpsonntag opened this issue May 13, 2022 · 0 comments
Labels

Comments

@mpsonntag
Copy link
Contributor

Web page assets are served using go http.FileServer and http.FileSystem via the /assets route.

A requested file that is not available leads to a server panic; e.g. requesting plain "https://[doi url]/assets".

Catch this panic and respond with status code "400 - Bad request" instaed.

@mpsonntag mpsonntag added the bug label May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant