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 DBC78101BC for ; Sun, 15 Feb 2015 10:54:05 +0000 (UTC) Received: (qmail 23345 invoked by uid 500); 15 Feb 2015 10:46:47 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 11858 invoked by uid 500); 15 Feb 2015 10:46:38 -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 99206 invoked by uid 99); 15 Feb 2015 08:51:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2015 08:51:11 +0000 Date: Sun, 15 Feb 2015 08:51:11 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-5183) EndpointConfiguration - Looses parameters if there is a name clash with known tokens 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-5183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-5183. -------------------------------- Resolution: Won't Fix >From Camel 2.15 onwards we have a better way of knowing endpoint configuration. > EndpointConfiguration - Looses parameters if there is a name clash with known tokens > ------------------------------------------------------------------------------------ > > Key: CAMEL-5183 > URL: https://issues.apache.org/jira/browse/CAMEL-5183 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.9.0 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: Future > > > The endpoint configuration introduced in Camel 2.9 introduces more issues than per see. We should use the previous logic by default, and allow custom components to use a 3rd party EndpointConfiguration if they need to. > For example if you have a uri parameter named {{port}} then that is lost > Given the test below it fails > {code} > @Test > public void testConfigurationPortParameter() throws Exception { > EndpointConfiguration cfg1 = ConfigurationHelper.createConfiguration("mapped://foo:8080?one=true&two=2&port=123", context); > String uri1 = cfg1.toUriString(EndpointConfiguration.UriFormat.Complete); > assertEquals("mapped://foo:8080?one=true&two=2&port=123", uri1); > } > {code} > There is other facts with this EndpointConfiguration that causes side-effects as the previous logic was based on URISupport to parse the uris and whatnot. But the EndpointConfiguration introduced a new logic for that, and they are not identical. -- This message was sent by Atlassian JIRA (v6.3.4#6332)