You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Hilde <hi...@yahoo.de> on 2012/08/30 13:34:32 UTC
Endpoint uri: Questionmark as part of password
Hello folks!
We are using the ftp component and build up the ftp endpoint uri
dynamically. Occasionally the password consists of a questionmark but that
causes the uri to be invalid:
&reconnectDelay=10000&password=pR+F3Snb%7D*?*&filter=#dlDataFileFilter
The class org.apache.camel.util.UnsafeUriCharactersEncoder cannot help
because no questionmarks will be encoded.
Cheers
Hilde
--
View this message in context: http://camel.465427.n5.nabble.com/Endpoint-uri-Questionmark-as-part-of-password-tp5718378.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Endpoint uri: Questionmark as part of password
Posted by Claus Ibsen <cl...@gmail.com>.
As usual when asking for help, please state which version of the
software you are using.
And have you tried using a newer release?
As we suggest here
http://camel.apache.org/support
On Thu, Aug 30, 2012 at 1:34 PM, Hilde <hi...@yahoo.de> wrote:
> Hello folks!
>
> We are using the ftp component and build up the ftp endpoint uri
> dynamically. Occasionally the password consists of a questionmark but that
> causes the uri to be invalid:
>
> &reconnectDelay=10000&password=pR+F3Snb%7D*?*&filter=#dlDataFileFilter
>
> The class org.apache.camel.util.UnsafeUriCharactersEncoder cannot help
> because no questionmarks will be encoded.
>
> Cheers
> Hilde
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Endpoint-uri-Questionmark-as-part-of-password-tp5718378.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: Endpoint uri: Questionmark as part of password
Posted by Camel Guy <ca...@devguy.com>.
Hey, only 2.5 years later!
Check out RAW. See:
http://cosmo-opticon.net/blog/2014/12/23/escaping-endpoint-uris-in-camel
~cg
--
View this message in context: http://camel.465427.n5.nabble.com/Endpoint-uri-Questionmark-as-part-of-password-tp5718378p5762369.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Endpoint uri: Questionmark as part of password
Posted by "ravishankar.singaram" <by...@gmail.com>.
Has there been any luck on this?
We had a case where the password had abc)d+, it doesn't work either with
encoding abc%29d%2B.
We are using camel version 2.10.0
-----
Ravishankar Singaram
Technical Lead
Amadeus Software Labs
--
View this message in context: http://camel.465427.n5.nabble.com/Endpoint-uri-Questionmark-as-part-of-password-tp5718378p5721063.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Endpoint uri: Questionmark as part of password
Posted by Donald Whytock <dw...@gmail.com>.
Yeah, there's a similar issue with Mail, because some mail systems
insist on having the entire email address as part of the
signon...including the @domain. The Java URI class that does the
parsing doesn't like that either.
Don
On Thu, Aug 30, 2012 at 10:40 AM, Hilde <hi...@yahoo.de> wrote:
> Hello Donald!
>
> Thanks a lot for your hint. Your approach helped but just enconding and
> using inside the uri didn't.
>
> Hilde
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Endpoint-uri-Questionmark-as-part-of-password-tp5718378p5718426.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Endpoint uri: Questionmark as part of password
Posted by Hilde <hi...@yahoo.de>.
Hello Donald!
Thanks a lot for your hint. Your approach helped but just enconding and
using inside the uri didn't.
Hilde
--
View this message in context: http://camel.465427.n5.nabble.com/Endpoint-uri-Questionmark-as-part-of-password-tp5718378p5718426.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Endpoint uri: Questionmark as part of password
Posted by Donald Whytock <dw...@gmail.com>.
You might try working around it by setting the password directly in
the configuration.
FtpEndpoint endpoint = (FtpEndpoint) camelcontext.getEndpoint(uristring);
FtpConfiguration configuration = endpoint.getConfiguration();
configuration.setPassword(password);
Don
On Thu, Aug 30, 2012 at 8:45 AM, Hilde <hi...@yahoo.de> wrote:
> Hello and thanks for answering!
>
> We are using Apache Camel 2.10.0!
>
> However just encoding the special characters does not help:
>
> String encodedPwd = URLEncoder.encode("pR+F3Snb}?", "UTF-8")
>
> With the result of the encoded string camel ftp cannot connect.
>
> Hilde
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Endpoint-uri-Questionmark-as-part-of-password-tp5718378p5718390.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Endpoint uri: Questionmark as part of password
Posted by Aki Yoshida <el...@gmail.com>.
isn't that the wrong password string? i thought your password is "pR
F3Snb}?" and not "pR+F3Snb}?".
with that in mind, I could use this password and its corresponding
encoded text "pR+F3Snb%7D%3F" with camel trunk successfully.
regards, aki
2012/8/30 Hilde <hi...@yahoo.de>:
> Hello and thanks for answering!
>
> We are using Apache Camel 2.10.0!
>
> However just encoding the special characters does not help:
>
> String encodedPwd = URLEncoder.encode("pR+F3Snb}?", "UTF-8")
>
> With the result of the encoded string camel ftp cannot connect.
>
> Hilde
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Endpoint-uri-Questionmark-as-part-of-password-tp5718378p5718390.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Endpoint uri: Questionmark as part of password
Posted by Hilde <hi...@yahoo.de>.
Hello and thanks for answering!
We are using Apache Camel 2.10.0!
However just encoding the special characters does not help:
String encodedPwd = URLEncoder.encode("pR+F3Snb}?", "UTF-8")
With the result of the encoded string camel ftp cannot connect.
Hilde
--
View this message in context: http://camel.465427.n5.nabble.com/Endpoint-uri-Questionmark-as-part-of-password-tp5718378p5718390.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Endpoint uri: Questionmark as part of password
Posted by Aki Yoshida <el...@gmail.com>.
you need to encode the questionmark by replacing it with %3F.
2012/8/30 Hilde <hi...@yahoo.de>:
> Hello folks!
>
> We are using the ftp component and build up the ftp endpoint uri
> dynamically. Occasionally the password consists of a questionmark but that
> causes the uri to be invalid:
>
> &reconnectDelay=10000&password=pR+F3Snb%7D*?*&filter=#dlDataFileFilter
>
> The class org.apache.camel.util.UnsafeUriCharactersEncoder cannot help
> because no questionmarks will be encoded.
>
> Cheers
> Hilde
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Endpoint-uri-Questionmark-as-part-of-password-tp5718378.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Endpoint uri: Questionmark as part of password
Posted by Charles Moulliard <ch...@gmail.com>.
Can you using a regular expresion change the ? character by its
correspoding value supported in URL : %3F
On Thu, Aug 30, 2012 at 1:34 PM, Hilde <hi...@yahoo.de> wrote:
> Hello folks!
>
> We are using the ftp component and build up the ftp endpoint uri
> dynamically. Occasionally the password consists of a questionmark but that
> causes the uri to be invalid:
>
> &reconnectDelay=10000&password=pR+F3Snb%7D*?*&filter=#dlDataFileFilter
>
> The class org.apache.camel.util.UnsafeUriCharactersEncoder cannot help
> because no questionmarks will be encoded.
>
> Cheers
> Hilde
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Endpoint-uri-Questionmark-as-part-of-password-tp5718378.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Charles Moulliard
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Twitter : @cmoulliard
Blog : http://cmoulliard.blogspot.com