HTTP Handlers return an empty message with a 500 response
Description
Release Notes
Fixed an issue where some RESTful APIs were not returning appropriate error messages for internal server errors.
Activity
Show:
Bhooshan Mogal September 18, 2015 at 5:40 AM
Merged PR to release/3.2
Bhooshan Mogal September 18, 2015 at 3:19 AM
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Created September 18, 2015 at 12:05 AM
Updated September 18, 2015 at 11:58 PM
Resolved September 18, 2015 at 5:40 AM
This makes it extremely hard to debug test failures, and is generally not good. There is a whole bunch of
catch (Throwable t) { LOG.error(t.getMessage); responder.sendStatus(HttpResponseStatus.INTERNAL_SERVER_ERROR); }
across CDAP Http Handlers. We can just remove these catch blocks and allow
HttpExceptionHandler
to take care of responding.