Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC4CD10E5E for ; Mon, 11 Nov 2013 10:26:40 +0000 (UTC) Received: (qmail 7874 invoked by uid 500); 11 Nov 2013 10:26:25 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 7765 invoked by uid 500); 11 Nov 2013 10:26:21 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 7726 invoked by uid 99); 11 Nov 2013 10:26:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Nov 2013 10:26:18 +0000 Date: Mon, 11 Nov 2013 10:26:18 +0000 (UTC) From: "Ralf Steppacher (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-6953) Simple expression "${headers.CamelHttpUrl} contains 'foo'" never becomes true MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-6953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ralf Steppacher updated CAMEL-6953: ----------------------------------- Priority: Minor (was: Major) Issue Type: Improvement (was: Bug) > 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 > Priority: Minor > 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)