Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0F04D200C01 for ; Thu, 5 Jan 2017 01:32:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0D6FB160B47; Thu, 5 Jan 2017 00:32:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 59D63160B3A for ; Thu, 5 Jan 2017 01:31:59 +0100 (CET) Received: (qmail 94479 invoked by uid 500); 5 Jan 2017 00:31:58 -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 94463 invoked by uid 99); 5 Jan 2017 00:31:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2017 00:31:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 772FB2C1F5A for ; Thu, 5 Jan 2017 00:31:58 +0000 (UTC) Date: Thu, 5 Jan 2017 00:31:58 +0000 (UTC) From: "Arpit Goyal (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-10581) toD (ToDynamicDefinition) does not honor RAW( ) contract - 'removes + from password' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 05 Jan 2017 00:32:00 -0000 [ https://issues.apache.org/jira/browse/CAMEL-10581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15799828#comment-15799828 ] Arpit Goyal commented on CAMEL-10581: ------------------------------------- [~davsclaus] [~gzurowski] Any way I can find out when the 2.18.2 will be released. Checked - http://camel.apache.org/camel-2182-release.html but didn't find some definitive date. > toD (ToDynamicDefinition) does not honor RAW( ) contract - 'removes + from password' > ------------------------------------------------------------------------------------ > > Key: CAMEL-10581 > URL: https://issues.apache.org/jira/browse/CAMEL-10581 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.16.3 > Reporter: Arpit Goyal > Assignee: Claus Ibsen > Labels: password, raw, sftp, toD > Fix For: 2.17.5, 2.18.2, 2.19.0 > > > We have SFTP passwords which have special characters and hence we tried to use the RAW function. On testing we saw that the RAW doesn't work and it still fails. > On debugging we realize that we are using toD("sftp://....") and not to("sftp://..."). As toD has been introduced later, I guess support for RAW was missed > Camel Version: 2.16.3 > URL: sftp://10.14.112.183:8686/customer?username=tester&password=RAW(abXNd+4nfzS)&stepwise=false&disconnect=true&reconnectDelay=5000&autoCreate=false&fileExist=Override&connectTimeout=300000 > Code Fails at - org.apache.camel.model.ToDynamicDefinition.createExpression(RouteContext) - line 86 or 117 (depending on your viewpoint). > - Line 86: String[] parts = uri.split("\\+"); > - Line 117: We concat expressions, without realizing that + was within the RAW function. > Regards, > Arpit. -- This message was sent by Atlassian JIRA (v6.3.4#6332)