Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
I was testing aws-translate in camel-blueprint with a stupid route like this one:
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd"> <camelContext xmlns="http://camel.apache.org/schema/blueprint" id="aws-translate"> <route id="aws"> <from uri="timer:name?repeatCount=5" /> <to uri="aws-translate:test?accessKey=RAW(xxxx)&secretKey=RAW(xxxx)&region=eu-west-1"/> <log message="Receiving body ${body}" /> </route> </camelContext> </blueprint>
In the component we have a check for having a client or accessKey and secretKey set, the error I'm getting is the following
org.apache.camel.FailedToCreateRouteException: Failed to create route aws at: >>> To[aws-translate:test?accessKey=RAW(xxxx)&secretKey=RAW(xxxx)®ion=eu-west-1] <<< in route: Route(aws)[From[timer:name?repeatCount=5] -> [To[aws-transla... because of Failed to resolve endpoint: aws-translate://test?accessKey=RAW(xxxx)®ion=eu-west-1&secretKey=xxxxxx due to: Amazon translate client or accessKey and secretKey must be specified
Then I tried to remove the check and use a modified version of the component, at that point, the options are completely not recognized.
[To[aws-transla... because of Failed to resolve endpoint: aws-translate://test?accessKey=RAW(xxxx)®ion=eu-west-1&secretKey=xxxxxx due to: Failed to resolve endpoint: aws-translate://test?accessKey=RAW(xxx)®ion=eu-west-1&secretKey=xxxxxx due to: There are 3 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=[{accessKey=xxxx, region=eu-west-1, secretKey=xxxx}]
It looks like there is something wrong while building the configuration and setting the properties on endpoint.
I tested only with camel-aws components, but it may be with others too