You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Mathis Schwuchow (JIRA)" <ji...@apache.org> on 2009/03/31 10:47:34 UTC

[jira] Created: (CAMEL-1504) HTTP_URI and HTTP_PATH message headers not concatenated when sending messages to http endpoint

HTTP_URI and HTTP_PATH message headers not concatenated when sending messages to http endpoint
----------------------------------------------------------------------------------------------

                 Key: CAMEL-1504
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1504
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-http
    Affects Versions: 2.0-M1
            Reporter: Mathis Schwuchow


When a message is sent to an http endpoint, the path specified in the HTTP_PATH header is ignored.

In the HttpProducer.createMethod() of the camel-http component, the URI is taken from the HTTP_URI header or the endpoint, but the HTTP_PATH header is not concatenated. 

See also the discussion on the mailing list: http://www.nabble.com/Setting-a-path-in-message-header-with-Camel-http-2.0M1-td22781504.html

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


[jira] Updated: (CAMEL-1504) HTTP_URI and HTTP_PATH message headers not concatenated when sending messages to http endpoint

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

Mathis Schwuchow updated CAMEL-1504:
------------------------------------

    Attachment: Patch_Issue_CAMEL-1504_V01.patch

I tried to fix the HttpProducer.createMethod(...).

If provided, the HTTP_PATH is appended to the HTTP_URI or the URI from the endpoint.

Maybe there should also be a check if the URI ends with "/" and the path starts with "/" to avoid URIs like http://myUri//myPath . Could add it if required.

> HTTP_URI and HTTP_PATH message headers not concatenated when sending messages to http endpoint
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1504
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1504
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http
>    Affects Versions: 2.0-M1
>            Reporter: Mathis Schwuchow
>         Attachments: Patch_Issue_CAMEL-1504_V01.patch
>
>
> When a message is sent to an http endpoint, the path specified in the HTTP_PATH header is ignored.
> In the HttpProducer.createMethod() of the camel-http component, the URI is taken from the HTTP_URI header or the endpoint, but the HTTP_PATH header is not concatenated. 
> See also the discussion on the mailing list: http://www.nabble.com/Setting-a-path-in-message-header-with-Camel-http-2.0M1-td22781504.html

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


[jira] Resolved: (CAMEL-1504) HTTP_URI and HTTP_PATH message headers not concatenated when sending messages to http endpoint

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

Claus Ibsen resolved CAMEL-1504.
--------------------------------

    Resolution: Fixed

@Mathis, thanks a lot for the patch.

trunk: 761334

> HTTP_URI and HTTP_PATH message headers not concatenated when sending messages to http endpoint
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1504
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1504
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http
>    Affects Versions: 2.0-M1
>            Reporter: Mathis Schwuchow
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: Patch_Issue_CAMEL-1504_V01.patch, Patch_Issue_CAMEL-1504_V02.patch
>
>
> When a message is sent to an http endpoint, the path specified in the HTTP_PATH header is ignored.
> In the HttpProducer.createMethod() of the camel-http component, the URI is taken from the HTTP_URI header or the endpoint, but the HTTP_PATH header is not concatenated. 
> See also the discussion on the mailing list: http://www.nabble.com/Setting-a-path-in-message-header-with-Camel-http-2.0M1-td22781504.html

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


[jira] Updated: (CAMEL-1504) HTTP_URI and HTTP_PATH message headers not concatenated when sending messages to http endpoint

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

Claus Ibsen updated CAMEL-1504:
-------------------------------

         Priority: Minor  (was: Major)
    Fix Version/s: 2.0.0

> HTTP_URI and HTTP_PATH message headers not concatenated when sending messages to http endpoint
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1504
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1504
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http
>    Affects Versions: 2.0-M1
>            Reporter: Mathis Schwuchow
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: Patch_Issue_CAMEL-1504_V01.patch, Patch_Issue_CAMEL-1504_V02.patch
>
>
> When a message is sent to an http endpoint, the path specified in the HTTP_PATH header is ignored.
> In the HttpProducer.createMethod() of the camel-http component, the URI is taken from the HTTP_URI header or the endpoint, but the HTTP_PATH header is not concatenated. 
> See also the discussion on the mailing list: http://www.nabble.com/Setting-a-path-in-message-header-with-Camel-http-2.0M1-td22781504.html

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


[jira] Updated: (CAMEL-1504) HTTP_URI and HTTP_PATH message headers not concatenated when sending messages to http endpoint

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

Mathis Schwuchow updated CAMEL-1504:
------------------------------------

    Attachment: Patch_Issue_CAMEL-1504_V02.patch

Added a check to ensure that there is exactly one "/" between URI and Path.

A unit test extending the HttpGetTest is also included in the patch.

> HTTP_URI and HTTP_PATH message headers not concatenated when sending messages to http endpoint
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1504
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1504
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http
>    Affects Versions: 2.0-M1
>            Reporter: Mathis Schwuchow
>         Attachments: Patch_Issue_CAMEL-1504_V01.patch, Patch_Issue_CAMEL-1504_V02.patch
>
>
> When a message is sent to an http endpoint, the path specified in the HTTP_PATH header is ignored.
> In the HttpProducer.createMethod() of the camel-http component, the URI is taken from the HTTP_URI header or the endpoint, but the HTTP_PATH header is not concatenated. 
> See also the discussion on the mailing list: http://www.nabble.com/Setting-a-path-in-message-header-with-Camel-http-2.0M1-td22781504.html

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


[jira] Assigned: (CAMEL-1504) HTTP_URI and HTTP_PATH message headers not concatenated when sending messages to http endpoint

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

Claus Ibsen reassigned CAMEL-1504:
----------------------------------

    Assignee: Claus Ibsen

> HTTP_URI and HTTP_PATH message headers not concatenated when sending messages to http endpoint
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1504
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1504
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http
>    Affects Versions: 2.0-M1
>            Reporter: Mathis Schwuchow
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: Patch_Issue_CAMEL-1504_V01.patch, Patch_Issue_CAMEL-1504_V02.patch
>
>
> When a message is sent to an http endpoint, the path specified in the HTTP_PATH header is ignored.
> In the HttpProducer.createMethod() of the camel-http component, the URI is taken from the HTTP_URI header or the endpoint, but the HTTP_PATH header is not concatenated. 
> See also the discussion on the mailing list: http://www.nabble.com/Setting-a-path-in-message-header-with-Camel-http-2.0M1-td22781504.html

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