camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Tully (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-324) bad content length header value in http response
Date Wed, 27 Feb 2008 22:30:17 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary Tully updated CAMEL-324:
-----------------------------

    Attachment: jetty_no_propagate_content_length.patch

This patch takes the lead from the jmsBinding and the fix for CAMEL-254. I pulled the skip
code from HttpProducer into HttpBinding so it can be reused in the jetty component.
The option to override the set of ignored headers is provided via the IgnoredHeaders accessors


> bad content length header value in http response
> ------------------------------------------------
>
>                 Key: CAMEL-324
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-324
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http
>    Affects Versions: 1.3.0
>            Reporter: alex c
>            Assignee: Gary Tully
>            Priority: Critical
>         Attachments: jetty_no_propagate_content_length.patch
>
>
> By default HttpBinding class copies all request header attributes from the request to
the response including 'Content-Length'. So the consequence is that the response is declaring
the same size as the request which can lead to serious truncation problems! 
> the workaround is simply to add the line:
> out.removeHeader("Content-Length"); 
> in the writeResponse method of the httpbinding class allowing jetty to set the right
value.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message