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

camel-base64 - Optional properties: if encoded the optional doesn't have any effect

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.20.0
    • camel-base64, camel-core
    • None
    • Unknown

    Description

      Suppose you have something like:

        template:
          from:
            uri: "google-storage://{{bucketNameOrArn}}"
            parameters:
              autoCreateBucket: "{{autoCreateBucket}}"
              serviceAccountKey: "base64:{{serviceAccountKey}}"
              deleteAfterRead: "{{deleteAfterRead}}"
      

      and you want to have serviceAccountKey as optional parameter. If you prefix the parameter with '?', like

        template:
          from:
            uri: "google-storage://{{bucketNameOrArn}}"
            parameters:
              autoCreateBucket: "{{autoCreateBucket}}"
              serviceAccountKey: "base64:{{?serviceAccountKey}}"
              deleteAfterRead: "{{deleteAfterRead}}"
      

      We'll try to encode the value anyway, even if not specified.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            acosentino Andrea Cosentino
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: