Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.10.5, 2.11.2, 2.12.1
-
None
-
Unknown
Description
The exchange header CamelHttpUrl is of type StringBuffer and not String. This causes the simple expression "${headers.CamelHttpUrl} contains 'foo'" to always evaluate to false, because org.apache.camel.util.ObjectHelper::contains(Object,Object) does not handle StringBuffer.
Either the header should be of type String or org.apache.camel.util.ObjectHelper::contains(Object,Object) should deal with StringBuffer arguments.