NumberFormatException when accessing wrong URL path #2981
Labels
bug
Something isn't working
for-superday
Tolgee SuperDay is a step part hiring process when candidate work on real task
Describe the bug
When user accesses e.g.
/v2/projects/export&format=JSON
(which is wrong because there is&
instead of?
)the
export&format=JSON
is matched as the project ID and Tolgee tries to convert it to long.To Reproduce
Steps to reproduce the behavior:
/v2/projects/export&format=JSON
e.g. using CURLExpected behavior
It would be great if we god 404 with some explanation that project with id
export&format=JSON
cannot exist. The message should be suggestive enough so the user finds out.StackTrace
Versions and environment
The text was updated successfully, but these errors were encountered: