You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2009/09/11 04:47:12 UTC

[jira] Updated: (CAMEL-2002) The matchOnUriPrefix option should set per endpoint

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

Willem Jiang updated CAMEL-2002:
--------------------------------

          Description: 
Current camel-http component's  matchOnUriPrefix option is set to the component level. If we have the route like this

{code}
    from("jetty://http://localhost:9000/hello?matchOnUriPerfix").to(...)
    from("jetty://http://localhost:9000/test").to(...)   
{code} 

You can't access the service with http://localhost:9000/helloworld, since the Jetty compnent's matchOnUriPrefix is override by last route rule.
So we need to set the matchOnUriPrefix per Jetty endpoint.

The fix will also effect to the camel-servlet component 
 

  was:
Current camel-http component's  matchOnUriPrefix option is set to the component level. If we have the route like this

{code}
    from("jetty://http://localhost:9000/hello?matchOnUriPerfix").to(...)
    from("jetty://http://localhost:9000/test").to(...)   
{code} 

You can't access the service with http://localhost:9000/helloworld, since the Jetty compnent's matchOnUriPrefix is override by last route rule.
So we need to set the matchOnUriPrefix per Jetty endpoint.

The fix will also effect to the camel-servlet component (in Camel 2.x).
 

    Affects Version/s:     (was: 1.6.1)
                           (was: 1.6.0)
                           (was: 1.5.0)
                           (was: 1.4.0)
                           (was: 1.3.0)
        Fix Version/s:     (was: 1.6.2)

Just check the code of camel-1.x branch , the matchOnUriPrefix is new to camel 2.x.

> The matchOnUriPrefix option should set per endpoint
> ---------------------------------------------------
>
>                 Key: CAMEL-2002
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2002
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http
>    Affects Versions: 2.0-M1, 2.0-M2, 2.0-M3, 2.0.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.1.0
>
>
> Current camel-http component's  matchOnUriPrefix option is set to the component level. If we have the route like this
> {code}
>     from("jetty://http://localhost:9000/hello?matchOnUriPerfix").to(...)
>     from("jetty://http://localhost:9000/test").to(...)   
> {code} 
> You can't access the service with http://localhost:9000/helloworld, since the Jetty compnent's matchOnUriPrefix is override by last route rule.
> So we need to set the matchOnUriPrefix per Jetty endpoint.
> The fix will also effect to the camel-servlet component 
>  

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