camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-6953) Simple expression "${headers.CamelHttpUrl} contains 'foo'" never becomes true
Date Mon, 11 Nov 2013 11:51:21 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-6953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13818893#comment-13818893
] 

Claus Ibsen commented on CAMEL-6953:
------------------------------------

In older release you can manually invoke the toString
{code:xml}
<simple>${header.CamelHttpUrl.toString()} contains 'foo'</simple>
{code}

> Simple expression "${headers.CamelHttpUrl} contains 'foo'" never becomes true
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-6953
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6953
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, camel-jetty
>    Affects Versions: 2.10.5, 2.11.2, 2.12.1
>            Reporter: Ralf Steppacher
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.11.3, 2.12.2, 2.13.0
>
>         Attachments: jetty-CamelHttpUrl-context.xml
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message