Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4141

response_code 500 ignored when set in JAXRSOutInterceptor.handleWriteException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.2
    • Fix Version/s: 2.3.10, 2.4.7, 2.5.3, 2.6
    • Component/s: JAX-RS
    • Labels:
      None
    • Environment:

      tomcat 7.0.26, Java 1.6,

    • Estimated Complexity:
      Moderate

      Description

      I have a scenario where the call to writer.writeTo in JAXRSOutInterceptor.serializeMessage throws an exception.

      Before throwing the exception, the writer writes to the outputStream.

      When write.writeTo throws the exception, handleWriteException calls message.put(Message.RESPONSE_CODE, 500).

      However, my HTTP client is seeing the response come back with HTTP response code 200.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              benjishults Benjamin Shults
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: