[ 
https://issues.apache.org/activemq/browse/SMXCOMP-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51784#action_51784
 ] 

Guillaume Nodet commented on SMXCOMP-165:
-----------------------------------------

Consider this scenario:

external SOAP client -> SMX HTTP-BC consumer -> SMX HTTP-BC provider -> 
external SOAP server

Using the new SMX http component. The problem does not reproduce with the old 
http component.

If the external SOAP client send this HTTP header: "Expect: 100-continue", then 
this header is being added to the JBI normalized message and propagated through 
the entire flow. It will affect the http bc provider on the other end, which 
will add this header to it own outgoing HTTP request. That however can cause 
problems, if the external SOAP server responds with a "HTTP/1.1 100 Continue" 
status code. It might cause this exception at runtime:

org.apache.servicemix.soap.api.Fault: com.ctc.wstx.exc.WstxIOException: Stream 
closed

as the http bc provider does not deal with this status code correctly but 
closes the tcp connection.

It does not make any sense to propagate this HTTP header config from the 
originating SOAP client all the way through the SMX flow. This header config is 
request based and only relates to the one HTTP request between the SOAP client 
and the SMX HTTP-BC consumer. It does not apply on any invocations afterwards 
and hence should not be propagated. By not propagating this HTTP header 
element, the above exception can be avoided.

> servicemix-http provider endpoint may convey incorrect http headers, leading 
> to problems
> ----------------------------------------------------------------------------------------
>
>                 Key: SMXCOMP-165
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-165
>             Project: ServiceMix Components
>          Issue Type: Bug
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: 3.2.4, servicemix-http-2009.01
>
>


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

Reply via email to