Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-3713

HTTP Handlers return an empty message with a 500 response

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0, 3.0.0
    • Fix Version/s: 3.2.0
    • Component/s: Explore
    • Labels:
      None
    • Release Notes:
      Fixed an issue where some RESTful APIs were not returning appropriate error messages for internal server errors.
    • Rank:
      1|hzz01b:

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              bhooshan Bhooshan Mogal
              Reporter:
              bhooshan Bhooshan Mogal
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: