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 33E1E200BD9 for ; Fri, 9 Dec 2016 09:28:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 326FA160B1D; Fri, 9 Dec 2016 08:28:02 +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 7A379160B1C for ; Fri, 9 Dec 2016 09:28:01 +0100 (CET) Received: (qmail 61769 invoked by uid 500); 9 Dec 2016 08:28:00 -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 61752 invoked by uid 99); 9 Dec 2016 08:28:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2016 08:28:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 94F10D4F6E for ; Fri, 9 Dec 2016 08:27:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id GXbxJJNcnP4C for ; Fri, 9 Dec 2016 08:27:56 +0000 (UTC) Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D525E5F5F8 for ; Fri, 9 Dec 2016 08:27:55 +0000 (UTC) Received: by mail-qk0-f170.google.com with SMTP id n21so10598537qka.3 for ; Fri, 09 Dec 2016 00:27:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=pdiGBMdUanWDDk1fj+B4r+hrTslFkpF6Vs17YnMPUok=; b=jNIgIlbh2H0uFBrU98R5F7G4Ph4AtRwuYoJnYrG6ifTpzSZgp7yryYgWamNRICNhb2 +AjfutmrnHaT7z9wqJfk6wVmGEWKUPbcLgLtapnSVcJPGRMcBHlYGMdR4mp/ca1R6jzR HbsddOu3s3VUXuGVCgEQkI9h8tH73G8HRDo1qZ3CY/gzFQvTSbF28Bgh2BjC7fyoB67b /CP2vrRvebpV+r8YvOeuqnTnp/fR8Qw8CfNPwH0fKPqV4ksbUQPtEeW/xcWhtm31S/Bl cUQpfUSfbQVAyR67pjk1GfhkW5xYbE7ppVVrLvd3+VIFZ/e5/ubMrWQgAty9rCV5u4Jc uNaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=pdiGBMdUanWDDk1fj+B4r+hrTslFkpF6Vs17YnMPUok=; b=iAxrHd13bsZQCVhiatmVcXJBixj+fWDKII7uBiN+URd7Q21Jq2HIT38GLyi4m8X3sY lKcMkks5/PisDOLgMJkeQwr1zMoB82MiSdzZDmdPn0LaYD7K0khFZ0KZngvswmFmHP2t fFvXV74Cb9pe8xiOO9ITBNVXP8V/cKM5cporNeHltR3tRHDNeudO+uiU7uWL8ZoqDBoG ccQX0UsdT0gzBR6DR5t19gFUTT/l7qqtFjTKX2Ygc/HCfnQskux95zjWOj6wjfn9Ij36 Yt7L6+2uzudWGJgmkUJgU0IOcIYV+7Lhr5PqYeP/YdzvudHKJfU4wokowSB2z1Dccdj0 e2og== X-Gm-Message-State: AKaTC03FN1RM1maJ2PJt/Sidny1iLKgUgwHm2lalS5MSunukjzPPqJrQjg7Eae4MEmTSwNLgDUWCGEnc+d8B7g== X-Received: by 10.55.103.80 with SMTP id b77mr67568765qkc.142.1481272072690; Fri, 09 Dec 2016 00:27:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.51.173 with HTTP; Fri, 9 Dec 2016 00:27:32 -0800 (PST) In-Reply-To: References: From: Claus Ibsen Date: Fri, 9 Dec 2016 09:27:32 +0100 Message-ID: Subject: Re: toD doesn't support RAW function for passwords (Bug?) To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 archived-at: Fri, 09 Dec 2016 08:28:02 -0000 Hi Ah yeah that smells like a little bug. You are welcome to log a JIRA http://camel.apache.org/support.html On Fri, Dec 9, 2016 at 3:50 AM, Goyal, Arpit wrote: > 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 still fails. > > On debugging we realize that we are using toD("sftp://....") and not to("sftp://..."). As toD has been introduced later, I assume either it doesn't support RAW or this was missed out and is a bug. > > 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. > > Ref: http://camel.apache.org/how-do-i-configure-password-options-on-camel-endpoints-without-the-value-being-encoded.html > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2