I'm upgrading from Apache Camel 2.6.0 to 2.8.2 and I'm having a problem. 

Before the upgrade e manage to redirect a request from this 

<endpoint id="camel" 
uri="jetty:http://0.0.0.0:8080/camel?matchOnUriPrefix=true&amp;bridgeEndpoint=true"/>

to this 

<endpoint id="system" 
uri="http4://10.112.27.150:8080/system?bridgeEndpoint=true&amp;throwExceptionOnFailure=true"/>
  

using a simple 

.choice() 
.when(header("CamelHttpUri").regex(".*/(resource).*")) 
.to("system") 

but after the upgrade, the final URI passed from <a 
href="http://host:port/system/resource";>http://host:port/system/resource to <a 
href="http://host:port/system?bridgeEndpoint=true&throwExceptionOnFailure=true/resource";>http://host:port/system?bridgeEndpoint=true&throwExceptionOnFailure=true/resource

It's not replacing "?bridgeEndpoint=true&throwExceptionOnFailure=true" 
correctly 

Any ideias? Is this a bug from the new version?

Best regards,
Carlos

Reply via email to