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 2021/01/21 18:05:07 UTC

[camel] branch camel-3.7.x updated (779f554 -> 9fb5bef)

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

acosentino pushed a change to branch camel-3.7.x
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from 779f554  CAMEL-16035 HazelcastQueueConsumer : do not send NULL when nothing is polled from queue (#4901)
     new 9a9bb64  CAMEL-16068 - Camel-AWS2-S3: Fix condition for throwing exception in case bucket does not exist
     new 9fb5bef  CAMEL-16068 - Camel-AWS2-S3: Fix condition for throwing exception in case bucket does not exist

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../main/java/org/apache/camel/component/aws2/s3/AWS2S3Consumer.java    | 2 +-
 .../main/java/org/apache/camel/component/aws2/s3/AWS2S3Endpoint.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


[camel] 02/02: CAMEL-16068 - Camel-AWS2-S3: Fix condition for throwing exception in case bucket does not exist

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 9fb5bef33b7efb45c70e555c460fd3552be498a4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 21 14:40:38 2021 +0100

    CAMEL-16068 - Camel-AWS2-S3: Fix condition for throwing exception in case bucket does not exist
---
 .../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 f5148e9..40d05ec 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
@@ -79,7 +79,7 @@ public class AWS2S3Consumer extends ScheduledBatchPollingConsumer {
                 return;
             } catch (AwsServiceException ase) {
                 /* 404 means the bucket doesn't exist */
-                if (ase.awsErrorDetails().errorCode().equalsIgnoreCase("404")) {
+                if (!(ase.awsErrorDetails().sdkHttpResponse().statusCode() == 404)) {
                     throw ase;
                 }
             }


[camel] 01/02: CAMEL-16068 - Camel-AWS2-S3: Fix condition for throwing exception in case bucket does not exist

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 9a9bb6424a8dac6a85e3d09d1862c9b951e3880e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 21 14:39:59 2021 +0100

    CAMEL-16068 - Camel-AWS2-S3: Fix condition for throwing exception in case bucket does not exist
---
 .../main/java/org/apache/camel/component/aws2/s3/AWS2S3Endpoint.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/AWS2S3Endpoint.java b/components/camel-aws2-s3/src/main/java/org/apache/camel/component/aws2/s3/AWS2S3Endpoint.java
index 1b3f04f..78f1523 100644
--- a/components/camel-aws2-s3/src/main/java/org/apache/camel/component/aws2/s3/AWS2S3Endpoint.java
+++ b/components/camel-aws2-s3/src/main/java/org/apache/camel/component/aws2/s3/AWS2S3Endpoint.java
@@ -116,7 +116,7 @@ public class AWS2S3Endpoint extends ScheduledPollEndpoint {
             return;
         } catch (AwsServiceException ase) {
             /* 404 means the bucket doesn't exist */
-            if (ase.awsErrorDetails().errorCode().equalsIgnoreCase("404")) {
+            if (!(ase.awsErrorDetails().sdkHttpResponse().statusCode() == 404)) {
                 throw ase;
             }
         }