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.0, 2.0-M3, 2.0-M2, 1.6.1, 2.0-M1, 1.6.0, 1.5.0, 
1.4.0, 1.3.0
            Reporter: Willem Jiang
            Assignee: Willem Jiang
             Fix For: 1.6.2, 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 (in Camel 2.x).
 

-- 
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