Issue with camel master endpoint while using RAW() function

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content