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

Scott England-Sullivan updated CAMEL-5458:
------------------------------------------

    Description: 
When a Jetty/HTTP endpoint that has the matchOnUriPrefix=true option set and is 
configured to match any URI (no path is specified) the HttpHelper concatenates 
the consumer path to the producer endpoint creating an 
HttpOperationUnsupportedException.

For example the following will process as expected and the HttpHelper class 
will create the http://localhost:10021/proxy/ping consumer URI:

{code}
from("jetty:http://localhost:10020/ping?matchOnUriPrefix=true";)
    .to("jetty:http://localhost:10021/proxy/ping?bridgeEndpoint=true";);
{code}

While this code will create http://localhost:10021/proxy/ping/ping and create 
the exception (the only difference is there isn't a path on the consumer):

{code}
from("jetty:http://localhost:10020?matchOnUriPrefix=true";)
    .to("jetty:http://localhost:10021/proxy/ping?bridgeEndpoint=true";);
{code}

Test case and patch will be uploaded shortly.

Thanks,
Scott ES
http://fusesource.com

  was:
When a RecipientList Bean creates a Jetty/HTTP bridgeEndpoint URI that has an 
HTTP path already, the HttpHelper concatenates the consumer path to the 
producer endpoint creating an HttpOperationUnsupportedException.

For example, if the consumer endpoint is http://address:port/foo and the 
producer endpoint is http://address:port/bar the HttpHelper will return an 
endpoint of http://address:port/bar/foo.

Test case and patch will be uploaded shortly.  I am testing the other options 
for recipient list as well.

Thanks,
Scott ES
http://fusesource.com

        Summary: Jetty/HTTP Pathless Consumer matchOnUriPrefix=true Breaks 
Producer bridgeEndpoint=true  (was: Recipient List Breaks Jetty/HTTP 
bridgeEndpoint=true)

After further debugging I found the error was further up in the consumer and 
not in the recipient list.
                
> Jetty/HTTP Pathless Consumer matchOnUriPrefix=true Breaks Producer 
> bridgeEndpoint=true
> --------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5458
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5458
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Scott England-Sullivan
>
> When a Jetty/HTTP endpoint that has the matchOnUriPrefix=true option set and 
> is configured to match any URI (no path is specified) the HttpHelper 
> concatenates the consumer path to the producer endpoint creating an 
> HttpOperationUnsupportedException.
> For example the following will process as expected and the HttpHelper class 
> will create the http://localhost:10021/proxy/ping consumer URI:
> {code}
> from("jetty:http://localhost:10020/ping?matchOnUriPrefix=true";)
>     .to("jetty:http://localhost:10021/proxy/ping?bridgeEndpoint=true";);
> {code}
> While this code will create http://localhost:10021/proxy/ping/ping and create 
> the exception (the only difference is there isn't a path on the consumer):
> {code}
> from("jetty:http://localhost:10020?matchOnUriPrefix=true";)
>     .to("jetty:http://localhost:10021/proxy/ping?bridgeEndpoint=true";);
> {code}
> Test case and patch will be uploaded shortly.
> Thanks,
> Scott ES
> http://fusesource.com

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to