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

response_code 500 ignored when set in JAXRSOutInterceptor.handleWriteException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.2
    • 2.3.10, 2.4.7, 2.5.3, 2.6
    • JAX-RS
    • None
    • tomcat 7.0.26, Java 1.6,

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: