You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "sabri.bousselmi" <in...@yahoo.fr> on 2013/11/15 10:48:53 UTC

RAW option dosen't work in case of Spring DSL URI

I'm using camel version 2.12.1.
i'm using http component with authentication and i'm trying to keep the
passwor as it is without any encoding.

below my URI:

<to
uri="http://blablabla?authMethod=Basic&amp;authUsername=sabri&amp;authPassword=RAW(sabri&)"/>
this will end up with non xml valid.
1- I'm asking if it is a bug or RAW option it's only used for java
DSL.(nothing mentioned in the online documentation).
2- authMethod and authUsername parameters must be used the uri and can't be
part of the Message headers Exchange.HTTP_URI. (also nothing mentioned in
the online documentation).

Thanks for any help.



--
View this message in context: http://camel.465427.n5.nabble.com/RAW-option-dosen-t-work-in-case-of-Spring-DSL-URI-tp5743346.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: RAW option dosen't work in case of Spring DSL URI

Posted by "sabri.bousselmi" <in...@yahoo.fr>.
Thanks a lot.
I tested and it's well working. 



--
View this message in context: http://camel.465427.n5.nabble.com/RAW-option-dosen-t-work-in-case-of-Spring-DSL-URI-tp5743346p5743351.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: RAW option dosen't work in case of Spring DSL URI

Posted by Claus Ibsen <cl...@gmail.com>.
You are using XML and you must obey the xml rules.

So you would need to escape your & as &amp;



On Fri, Nov 15, 2013 at 10:48 AM, sabri.bousselmi <in...@yahoo.fr> wrote:
> I'm using camel version 2.12.1.
> i'm using http component with authentication and i'm trying to keep the
> passwor as it is without any encoding.
>
> below my URI:
>
> <to
> uri="http://blablabla?authMethod=Basic&amp;authUsername=sabri&amp;authPassword=RAW(sabri&)"/>
> this will end up with non xml valid.
> 1- I'm asking if it is a bug or RAW option it's only used for java
> DSL.(nothing mentioned in the online documentation).
> 2- authMethod and authUsername parameters must be used the uri and can't be
> part of the Message headers Exchange.HTTP_URI. (also nothing mentioned in
> the online documentation).
>
> Thanks for any help.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/RAW-option-dosen-t-work-in-case-of-Spring-DSL-URI-tp5743346.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