Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Middleware: Key not found returns Internal Server Error #16

Open
muhlemmer opened this issue Apr 15, 2020 · 0 comments
Open

Middleware: Key not found returns Internal Server Error #16

muhlemmer opened this issue Apr 15, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@muhlemmer
Copy link
Contributor

At the moment, when a public key is not found an (incorrect) internal server error is returned to the client. gRPC already returns the correct "not found" class code, but it is unhandled by middleware.

Instead of internal server error, the client should be redirected for login.

Normally, public keys are never deleted from the database. New ones are just added at server start and older ones can always be obtained. Therefore, this bug is not very critical.

@muhlemmer muhlemmer added the bug Something isn't working label Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant