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

Adding LoggingFeature enables chunking response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.1
    • 3.3.3
    • logging
    • OS - Windows 10

      Java  - 1.8.0_181

      Tomcat - 8.5

      CXF - 3.3.1

    • Unknown
    • Important

    Description

      Adding org.apache.cxf.feature.LoggingFeature to Bus feature affects the response header, it adds transfer encoding as chunked, where as without LoggingFeature the content length is set and no transfer encoding set.

      <jaxws:features>
      <bean class="org.apache.cxf.feature.LoggingFeature" />
      </jaxws:features>

      Response header when LoggingFeature is added,

      HTTP/1.1 200
      Content-Type: text/xml;charset=UTF-8
      Transfer-Encoding: chunked
      Date: Wed, 01 May 2019 05:43:46 GMT

      Response header when LoggingFeature is removed,

      HTTP/1.1 200
      Content-Type: text/xml;charset=UTF-8
      Content-Length: 496
      Date: Wed, 01 May 2019 06:30:04 GMT

      Possible issue may be because converting the original OutputStream to CacheAndWriteOutputStream, I am not able look into further

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pskarthic karthic
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m