Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-688

Camel-Jetty Component ignoring the chunked=false option

    XMLWordPrintable

Details

    Description

      When using the chunked=false option in Fuse Camel 2.10.0-fuse-71-047 the option is ignored. As documented, when this option is set to false the response header should include the content-length header.

      Test results from attached route:

      Camel 2.10.0-fuse-71-047

      Response Headers:
      Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
      Accept-Encoding:gzip,deflate,sdch
      Accept-Language:en-US,en;q=0.8
      Accept-Ranges:bytes
      Access-Control-Allow-Origin:*
      breadcrumbId:ID-new-host-2-home-58154-1358980547679-1-4
      Content-Disposition:inline; filename="none.jpg"
      Content-Type:image/jpeg
      Expires:Wed, 23 Jan 2013 22:42:47 GMT
      Last-Modified:Wed, 11 Jan 1984 08:00:00 GMT
      Server:ECS (mia/41CE)
      Transfer-Encoding:chunked
      User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.52 Safari/537.17
      X-Cache:HIT
      

      Apache Camel 2.9

      Responses Headers:
      Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
      Accept-Encoding:gzip,deflate,sdch
      Accept-Language:en-US,en;q=0.8
      Accept-Ranges:bytes
      Access-Control-Allow-Origin:*
      breadcrumbId:ID-new-host-2-home-58127-1358980354217-0-8
      Content-Disposition:inline; filename="none.jpg"
      Content-Length:2499
      Content-Type:image/jpeg;charset=ISO-8859-1
      Expires:Wed, 23 Jan 2013 22:39:02 GMT
      Host:0.0.0.0:8299
      Last-Modified:Wed, 11 Jan 1984 08:00:00 GMT
      Server:ECS (mia/41CE)
      User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.52 Safari/537.17
      X-Cache:HIT
      

      Note the missing header "Content-Length" in Camel 2.10.0-71-047 and the Transfer-Encoding:chunked

      Attachments

        Issue Links

          Activity

            People

              willem.jiang Willem Jiang (Inactive)
              rhn-support-jsherman Jason Sherman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: