You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/09/10 20:26:11 UTC

[camel] branch master updated: Update AWS2S3Consumer.java (#4184)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new f640347  Update AWS2S3Consumer.java (#4184)
f640347 is described below

commit f640347e1a66e63dda0b2f29e2cdedb89e51a638
Author: Filipe Portes <om...@gmail.com>
AuthorDate: Thu Sep 10 22:25:33 2020 +0200

    Update AWS2S3Consumer.java (#4184)
    
    fix getDestinationBucketSuffix() empty check
---
 .../main/java/org/apache/camel/component/aws2/s3/AWS2S3Consumer.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-aws2-s3/src/main/java/org/apache/camel/component/aws2/s3/AWS2S3Consumer.java b/components/camel-aws2-s3/src/main/java/org/apache/camel/component/aws2/s3/AWS2S3Consumer.java
index 0397209..b044d73 100644
--- a/components/camel-aws2-s3/src/main/java/org/apache/camel/component/aws2/s3/AWS2S3Consumer.java
+++ b/components/camel-aws2-s3/src/main/java/org/apache/camel/component/aws2/s3/AWS2S3Consumer.java
@@ -281,7 +281,7 @@ public class AWS2S3Consumer extends ScheduledBatchPollingConsumer {
                     builder.append(getConfiguration().getDestinationBucketPrefix());
                 }
                 builder.append(key);
-                if (ObjectHelper.isNotEmpty(getConfiguration().getDestinationBucketPrefix())) {
+                if (ObjectHelper.isNotEmpty(getConfiguration().getDestinationBucketSuffix())) {
                     builder.append(getConfiguration().getDestinationBucketSuffix());
                 }
                 getAmazonS3Client().copyObject(CopyObjectRequest.builder().destinationKey(builder.toString())