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 2023/05/10 16:15:53 UTC

[camel] branch main updated: CAMEL-17652 - camel-minio - Auto create bucket should not be done in endpoint

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

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


The following commit(s) were added to refs/heads/main by this push:
     new f7f3ed0c10e CAMEL-17652 - camel-minio - Auto create bucket should not be done in endpoint
f7f3ed0c10e is described below

commit f7f3ed0c10e757cca1bfdd2fd2f6a0140745b1bd
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed May 10 18:14:16 2023 +0200

    CAMEL-17652 - camel-minio - Auto create bucket should not be done in endpoint
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../main/java/org/apache/camel/component/minio/MinioEndpoint.java   | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioEndpoint.java b/components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioEndpoint.java
index ed9417b9d54..a4d47f4bc2c 100644
--- a/components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioEndpoint.java
+++ b/components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioEndpoint.java
@@ -92,11 +92,7 @@ public class MinioEndpoint extends ScheduledPollEndpoint {
                 LOG.trace("AutoCreateBucket set to true, Creating bucket {}...", bucketName);
                 makeBucket(bucketName);
                 LOG.trace("Bucket created");
-            } else {
-                throw new IllegalArgumentException(
-                        "Bucket does not exists, set autoCreateBucket option for bucket auto creation");
-
-            }
+            } 
         }
 
         if (isNotEmpty(getConfiguration().getPolicy())) {