You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Torsten Mielke (JIRA)" <ji...@apache.org> on 2007/08/22 09:55:22 UTC

[jira] Created: (SM-1038) http provider endpoint sends wrong Host header

http provider endpoint sends wrong Host header
----------------------------------------------

                 Key: SM-1038
                 URL: https://issues.apache.org/activemq/browse/SM-1038
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-http
    Affects Versions: 3.1.1
         Environment: JDK 5.0
            Reporter: Torsten Mielke
         Attachments: http-marshaler.patch

The current ServiceMix http:provider endpoint uses jetty-client-6.1.5 library, which contains a bug fixed in their trunk. More infomation on http://fisheye.codehaus.org/browse/jetty-contrib/jetty/trunk/contrib/client/src/main/java/org/mortbay/jetty/client/HttpConnection.java?r1=374&r2=378.
This causes wrong Host header in HTTP request.

Actual Host header looks like this:
Host: HttpDestination@5475588//host.com:8080(1,0,0)

Of course such header causes HTTP 400 response and endpoint cannot be used at all.

To work around this bug deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/endpoints/DefaultHttpProviderMarshaler.java needs to get the attached patch applied.

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


[jira] Resolved: (SM-1038) http provider endpoint sends wrong Host header

Posted by "Thomas Termin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Termin resolved SM-1038.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 3.2

Fixed

Many thanks to Torsten Mielke for the patch!!!

Author: tterm
Date: Wed Aug 22 08:09:59 2007
New Revision: 568645

URL: http://svn.apache.org/viewvc?rev=568645&view=rev
Log:
SM-1038 http provider endpoint sends wrong Host header

Modified:
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/endpoints/DefaultHttpProviderMarshaler.java



> http provider endpoint sends wrong Host header
> ----------------------------------------------
>
>                 Key: SM-1038
>                 URL: https://issues.apache.org/activemq/browse/SM-1038
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-http
>    Affects Versions: 3.1.1
>         Environment: JDK 5.0
>            Reporter: Torsten Mielke
>             Fix For: 3.2
>
>         Attachments: http-marshaler.patch
>
>
> The current ServiceMix http:provider endpoint uses jetty-client-6.1.5 library, which contains a bug fixed in their trunk. More infomation on http://fisheye.codehaus.org/browse/jetty-contrib/jetty/trunk/contrib/client/src/main/java/org/mortbay/jetty/client/HttpConnection.java?r1=374&r2=378.
> This causes wrong Host header in HTTP request.
> Actual Host header looks like this:
> Host: HttpDestination@5475588//host.com:8080(1,0,0)
> Of course such header causes HTTP 400 response and endpoint cannot be used at all.
> To work around this bug deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/endpoints/DefaultHttpProviderMarshaler.java needs to get the attached patch applied.

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


[jira] Commented: (SM-1038) http provider endpoint sends wrong Host header

Posted by "Thomas Termin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39996 ] 

Thomas Termin commented on SM-1038:
-----------------------------------

Patch should be undone if a new jetty release is available

> http provider endpoint sends wrong Host header
> ----------------------------------------------
>
>                 Key: SM-1038
>                 URL: https://issues.apache.org/activemq/browse/SM-1038
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-http
>    Affects Versions: 3.1.1
>         Environment: JDK 5.0
>            Reporter: Torsten Mielke
>             Fix For: 3.2
>
>         Attachments: http-marshaler.patch
>
>
> The current ServiceMix http:provider endpoint uses jetty-client-6.1.5 library, which contains a bug fixed in their trunk. More infomation on http://fisheye.codehaus.org/browse/jetty-contrib/jetty/trunk/contrib/client/src/main/java/org/mortbay/jetty/client/HttpConnection.java?r1=374&r2=378.
> This causes wrong Host header in HTTP request.
> Actual Host header looks like this:
> Host: HttpDestination@5475588//host.com:8080(1,0,0)
> Of course such header causes HTTP 400 response and endpoint cannot be used at all.
> To work around this bug deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/endpoints/DefaultHttpProviderMarshaler.java needs to get the attached patch applied.

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