You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2026/09/24 09:47:00 UTC
[jira] [Commented] (CAMEL-24901) camel-aws2-s3: restrict Simple expression evaluation of key/bucket to configured values
[ https://issues.apache.org/jira/browse/CAMEL-24901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18118750#comment-18118750 ]
Andrea Cosentino commented on CAMEL-24901:
------------------------------------------
Fixed via https://github.com/apache/camel/pull/26746 (merged to main for 4.23.0). Backports to 4.22.x and 4.18.x to follow.
> camel-aws2-s3: restrict Simple expression evaluation of key/bucket to configured values
> ---------------------------------------------------------------------------------------
>
> Key: CAMEL-24901
> URL: https://issues.apache.org/jira/browse/CAMEL-24901
> Project: Camel
> Issue Type: Improvement
> Components: camel-aws2-s3
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 4.23.0
>
>
> The camel-aws2-s3 producer evaluates the S3 key and bucket name through the Simple language whenever the value contains a Simple function ({{AWS2S3Utils.determineKey()}} and {{determineBucketName()}}). This applies to values taken from the {{CamelAwsS3Key}} / {{CamelAwsS3OverrideBucketName}} headers as well as the configured {{keyName}} / {{bucketName}}.
> Simple-expression support (CAMEL-20971) was intended for configured dynamic keys/buckets and should be restricted to the configured {{keyName}} / {{bucketName}}. A key or bucket supplied through an exchange header should be used literally.
> This is a behavioural change and will be noted in the upgrade guide. Unit tests to be added for both cases.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)