Don't allow constructing a RouteId with invalid uuid #597
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm not sure if this is the right way to go about this since the result is being thrown away and reparsed later.
A few days ago, a User was trying to list a routes Euis and being met with an
unauthorized request signature
error, when it was a route_id typo.Making sure a user provides a valid Uuid as early as possible can provide better guidance towards using the system. Normally the route id is not attempted to be parsed until the db is about to be hit where other concerns are more pertinent. This leaves Uuid parsing errors mostly to be overwritten as general authentication errors.