Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7719

[Java Broker] Set response code to 500 when unexpected error occurs during REST call

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • qpid-java-broker-7.0.0
    • Broker-J
    • None

    Description

      Currently if there is an unhandled exception in the REST layer we do not set a error response code. The servlet ends up returning 200 which is clearly incorrect.
      we should set the error code to 500 and ideally return a JSON error message.

      The code in question is the final else block in RestServlet#setResponseStatus (~line 960).

      Attachments

        Activity

          People

            orudyy Alex Rudyy
            lorenz.quack Lorenz Quack
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: