Hi

See this FAQ
http://camel.apache.org/how-do-i-configure-password-options-on-camel-endpoints-without-the-value-being-encoded.html

On Tue, Apr 22, 2014 at 6:17 AM, Stephen Cameron
<steve.cameron...@gmail.com> wrote:
> Hi,
>
> I have a plus (+) symbol in a parameter value that is being converted to a
> space. When I encode this as %2B it still ends up as a space in the
> parameter value.
>
> In fact, both %20 and %2B end up giving me spaces in the parameter value.
>
> The following shows the issue
>
> DefaultCamelContext context = new DefaultCamelContext();
> MockComponent comp = new MockComponent();
> comp.setCamelContext(context);
> EndpointConfiguration conf = comp.createConfiguration("test:
> https://test.com?secretKey=A%2B-%20A";);
> System.out.println(conf.getParmeter("secretKey"));
> conf.setParameter("secretKey","A+- A");
> System.out.println(conf.getParmeter("secretKey"));
>
> Output is:
>
> A - A
> A+- A
>
> The first should be the same as the second.
>
> Thanks
> Steve Cameron



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

Reply via email to