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 607AB200BE8 for ; Fri, 9 Dec 2016 03:50:23 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 542CC160B27; Fri, 9 Dec 2016 02:50:23 +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 9992E160B1F for ; Fri, 9 Dec 2016 03:50:22 +0100 (CET) Received: (qmail 62356 invoked by uid 500); 9 Dec 2016 02:50:16 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 62345 invoked by uid 99); 9 Dec 2016 02:50:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2016 02:50:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BE82CC146E for ; Fri, 9 Dec 2016 02:50:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.022 X-Spam-Level: X-Spam-Status: No, score=-3.022 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id b01jYR3N0MxH for ; Fri, 9 Dec 2016 02:50:12 +0000 (UTC) Received: from smtpgw.sap-ag.de (smtpgw02.sap-ag.de [155.56.66.97]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 5EF285FB36 for ; Fri, 9 Dec 2016 02:50:12 +0000 (UTC) From: "Goyal, Arpit" To: "users@camel.apache.org" Subject: toD doesn't support RAW function for passwords (Bug?) Thread-Topic: toD doesn't support RAW function for passwords (Bug?) Thread-Index: AdJRxdyjAbOJoXyiQlqonEQxc0i0wg== Date: Fri, 9 Dec 2016 02:50:05 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.21.23.233] Content-Type: multipart/alternative; boundary="_000_d1eb2a27d784465a83e11a620c8b9f51DEROTE13DE39globalcorps_" MIME-Version: 1.0 archived-at: Fri, 09 Dec 2016 02:50:23 -0000 --_000_d1eb2a27d784465a83e11a620c8b9f51DEROTE13DE39globalcorps_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Camel users, On my 5-10mins analysis - looks like a problem/bug - please can you clarify= ? 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 st= ill fails. On debugging we realize that we are using toD("sftp://....") and not to("sf= tp://..."). As toD has been introduced later, I assume either it doesn't su= pport RAW or this was missed out and is a bug. Camel Version: 2.16.3 URL: sftp://10.14.112.183:8686/customer?username=3Dtester&password=3DRAW(ab= XNd+4nfzS)&stepwise=3Dfalse&disconnect=3Dtrue&reconnectDelay=3D5000&autoCre= ate=3Dfalse&fileExist=3DOverride&connectTimeout=3D300000 Code Fails at - org.apache.camel.model.ToDynamicDefinition.createExpression= (RouteContext) - line 86 or 117 (depending on your viewpoint). - Line 86: String[] parts =3D uri.split("\\+"); - Line 117: We concat expressions, without realizing that + was within the= RAW function. Regards, Arpit. Ref: http://camel.apache.org/how-do-i-configure-password-options-on-camel-e= ndpoints-without-the-value-being-encoded.html --_000_d1eb2a27d784465a83e11a620c8b9f51DEROTE13DE39globalcorps_--