You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/12/14 10:38:58 UTC
[jira] [Resolved] (CAMEL-10581) toD (ToDynamicDefinition) does not
honor RAW( ) contract - 'removes + from password'
[ https://issues.apache.org/jira/browse/CAMEL-10581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-10581.
---------------------------------
Resolution: Fixed
> 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)