You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Marco Crivellaro <ma...@gmail.com> on 2013/12/03 17:47:39 UTC

issue with ExchangeHelper.resolveEndpoint when using RAW() parameter on authPassword

Hi,
I've just bumped into an issue with ExchangeHelper.resolveEndpoint  when
used on a URI which has authPassword parameter value using RAW() value


ExchangeHelper.resolveEndpoint(exch,
"http://host:80/script.php?httpClient.soTimeout=3600000&authMethod=Basic&authPassword=RAW(pass!)&authUsername=usr").getEndpointUri()

returns following URI:
http://host:80/script.php?httpClient.soTimeout=3600000&authMethod=Basic&authPassword=pass%21&authUsername=usr


as you can see the authPassword parameter value have been changed from
RAW(pass!) to pass%21

this is not occurring when using RAW() value on ftp endpoint password
parameter, it just leave the original value.




--
View this message in context: http://camel.465427.n5.nabble.com/issue-with-ExchangeHelper-resolveEndpoint-when-using-RAW-parameter-on-authPassword-tp5744246.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: issue with ExchangeHelper.resolveEndpoint when using RAW() parameter on authPassword

Posted by Marco Crivellaro <ma...@gmail.com>.
my bad, it is the same for FTP.
I got confused by another issue I've found... will open a separate thread



--
View this message in context: http://camel.465427.n5.nabble.com/issue-with-ExchangeHelper-resolveEndpoint-when-using-RAW-parameter-on-authPassword-tp5744246p5744320.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: issue with ExchangeHelper.resolveEndpoint when using RAW() parameter on authPassword

Posted by Marco Crivellaro <ma...@gmail.com>.
why does it work in a different way between authPassword on HTTP and password
on FTP endpoint parameters?



--
View this message in context: http://camel.465427.n5.nabble.com/issue-with-ExchangeHelper-resolveEndpoint-when-using-RAW-parameter-on-authPassword-tp5744246p5744268.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: issue with ExchangeHelper.resolveEndpoint when using RAW() parameter on authPassword

Posted by Claus Ibsen <cl...@gmail.com>.
This is expected and how RAW() currently works.




On Tue, Dec 3, 2013 at 5:47 PM, Marco Crivellaro <ma...@gmail.com> wrote:
> Hi,
> I've just bumped into an issue with ExchangeHelper.resolveEndpoint  when
> used on a URI which has authPassword parameter value using RAW() value
>
>
> ExchangeHelper.resolveEndpoint(exch,
> "http://host:80/script.php?httpClient.soTimeout=3600000&authMethod=Basic&authPassword=RAW(pass!)&authUsername=usr").getEndpointUri()
>
> returns following URI:
> http://host:80/script.php?httpClient.soTimeout=3600000&authMethod=Basic&authPassword=pass%21&authUsername=usr
>
>
> as you can see the authPassword parameter value have been changed from
> RAW(pass!) to pass%21
>
> this is not occurring when using RAW() value on ftp endpoint password
> parameter, it just leave the original value.
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/issue-with-ExchangeHelper-resolveEndpoint-when-using-RAW-parameter-on-authPassword-tp5744246.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: issue with ExchangeHelper.resolveEndpoint when using RAW() parameter on authPassword

Posted by Marco Crivellaro <ma...@gmail.com>.
I have forgotten to mention I am using camel 2.12.1



--
View this message in context: http://camel.465427.n5.nabble.com/issue-with-ExchangeHelper-resolveEndpoint-when-using-RAW-parameter-on-authPassword-tp5744246p5744247.html
Sent from the Camel - Users mailing list archive at Nabble.com.