Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.18.0
-
None
-
Unknown
Description
Assuming we have a kamelet where the route template is defined as:
template: beans: - name: local-salesforce type: "#class:org.apache.camel.component.salesforce.SalesforceComponent" properties: clientId: "{{clientId}}" clientSecret: "{{clientSecret}}" userName: "{{userName}}" password: "{{password}}" loginUrl: "{{loginUrl}}" from: uri: kamelet:source steps: - to: uri: "{{local-salesforce}}:createSObject" parameters: sObjectName: "{{sObjectName}}" rawPayload: "true" format: "JSON"
Where we define the userName as something like foo+bar@acme.com.
With such parameter, the login would fail as the parameter would become foo bar@acme.com in the component (as the parameter is taken from the kamelet uri hence, it gets decoded).
An attempt to fix that is to use RAW, as example userName: "RAW{{userName}}" but this also would fail the login as the parameter would become RAW(foo bar@acme.com) in the component.
Attachments
Attachments
Issue Links
- is related to
-
CAMEL-16403 camel-core - URI parsing sensitive keys
- Open
- relates to
-
CAMEL-18385 camel-kamelet - Endpoint URIs from parameters could be passed as-is without uri encoding
- Resolved
- links to