You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/12/07 18:57:00 UTC
[jira] [Updated] (CAMEL-18802) Optional properties: if encoded the optional doesn't have any effect
[ https://issues.apache.org/jira/browse/CAMEL-18802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-18802:
--------------------------------
Fix Version/s: 3.20.0
> Optional properties: if encoded the optional doesn't have any effect
> --------------------------------------------------------------------
>
> Key: CAMEL-18802
> URL: https://issues.apache.org/jira/browse/CAMEL-18802
> Project: Camel
> Issue Type: New Feature
> Reporter: Andrea Cosentino
> Priority: Major
> Fix For: 3.20.0
>
>
> Suppose you have something like:
> {code:java}
> template:
> from:
> uri: "google-storage://{{bucketNameOrArn}}"
> parameters:
> autoCreateBucket: "{{autoCreateBucket}}"
> serviceAccountKey: "base64:{{serviceAccountKey}}"
> deleteAfterRead: "{{deleteAfterRead}}"
> {code}
> and you want to have serviceAccountKey as optional parameter. If you prefix the parameter with '?', like
> {code:java}
> template:
> from:
> uri: "google-storage://{{bucketNameOrArn}}"
> parameters:
> autoCreateBucket: "{{autoCreateBucket}}"
> serviceAccountKey: "base64:{{?serviceAccountKey}}"
> deleteAfterRead: "{{deleteAfterRead}}"
> {code}
> We'll try to encode the value anyway, even if not specified.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)