Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5373

HTTP status in case of Protocol/Transport exceptions

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.15.0
    • Component/s: netstd - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The THttpServerTransport already handles TTransportExceptions that occur during the "message receive" phase and delivers a HTTP 500 (internal server error) when no other response has been generated so far (instead of delivering the default HTTP 200 OK along with an empty message).

      What is currently not handled is TProtocolExceptions (happens i.e. when a required field is missing). So the goal of the ticket is to a) handle these errors as well and b) return a HTTP 400 (bad request) to indicate the error to the client.

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              jensg Jens Geyer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: