(Camel 2.9.2)
A very simple use case, but I can not find the answer. My code boils down to the following:
String user = "user"; String password = "foo&bar"; String uri = "smtp://hostname:25?username=" + user + "&password=" + password + "& to=somthing@something.com ";
Camel throws a ResolveEndpointFailedException with "Unknown parameters = [{bar = null}]".
If I try "foo% 26bar", I get the same result.
If I try "foo & bar", the camel answers, "Unknown parameters = [{amp; bar = null]]."
I tried using URISupport to create a URI. It escapes from and to% 26, and then again "Unknown parameters = [{bar = null}]".
Any ideas?
source share