G-Node / G-Node/gin-doi

Unavailable web page asset leads to panic

Open
#130 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.