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

MessageContext properties (HTTP_REQUEST_HEADERS & HTTP_RESPONSE_HEADERS) should not be available during all the phases of the invocation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.11
    • 2.0.12
    • JAX-WS Runtime
    • None
    • JOnAS 5.1.0

    Description

      The MessageContext.HTTP_REQUEST_HEADERS & MessageContext.HTTP_RESPONSE_HEADERS properties are currently available for all the phases/steps of a webservice invocation (requestor and endpoint side, inbound and outbound direction).

      They should only have a value at some well defined time:

      • HTTP_REQUEST_HEADERS should only have a value on the endpoint side with the inbound direction
      • HTTP_RESPONSE_HEADERS should only have a value on the requestor side with the outbound direction

      I'm not sure if the specification mandates that behavior, but some tests are failing because of the WrappedMessageContext heavy lifting that happened between CXF 2.0.9 and 2.0.10

      Attachments

        1. cxf-tck-MessageContextProperties.patch
          2 kB
          Guillaume Sauthier

        Activity

          People

            dkulp Daniel Kulp
            sauthieg Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: