Issue with camel master endpoint while using RAW() function
Issue
- While using with RAW() function, when the child component parses the URI it will fail if the (no longer escaped) value contains problematic characters (such as an ampersand) and results in ResolveEndpointFailedException
master://mname:sftp://myhost/inbox?password=RAW(beforeAmpersand&afterAmpersand)&username=abc
- Exception
org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: master://mname:sftp://myhost/inbox?password=RAW(beforeAmpersand&afterAmpersand)&username=jdoe due to: Failed to resolve endpoint: sftp://myhost/inbox?afterAmpersand=&password=beforeAmpersand&username=jdoe due to: Failed to resolve endpoint: sftp://myhost/inbox?afterAmpersand=&password=beforeAmpersand&username=jdoe due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{afterAmpersand=}]
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:578)
Environment
- Red Hat JBoss Fuse
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
