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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: qpid-java-broker-7.0.0
    • Component/s: Broker-J
    • Labels:
      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

            • Assignee:
              alex.rufous Alex Rudyy
              Reporter:
              lorenz.quack Lorenz Quack
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: