Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18370

Bidning properties to route template local beans do not honor RAW()

    XMLWordPrintableJSON

Details

    • 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

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              lb Luca Burgazzoli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: