Skip to content

fix: error handling for invalid file path converts 400 to 500 by global exception handler

Marc Burnie [AWS] requested to merge aws/fix/invalid-filepath into master

When user enters an invalid file key, a 500 response is returned. This is caused because the global exception handler expects an OsduBadRequestException to be thrown and not a AppException for bad requests. The global exception handler resolves AppException's as unhandled exceptions and returns a 500 as a result, which is not the intent.

Merge request reports

Loading