[ 
https://issues.apache.org/jira/browse/CAMEL-16068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino resolved CAMEL-16068.
--------------------------------------
    Resolution: Fixed

> Camel-AWS2-S3: Fix condition for throwing exception in case bucket does not 
> exist
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-16068
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16068
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws2
>    Affects Versions: 3.7.0
>         Environment: camel-aws2-s3:3.7.0
>            Reporter: fly
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             Fix For: 3.8.0, 3.7.2
>
>
> Wrong code on line 119:
> ```
> if (ase.awsErrorDetails().errorCode().equalsIgnoreCase("404")) {
>  throw ase;
>  }
>  
> Correct writing method:
> ```
> if (!ase.awsErrorDetails().errorCode().equalsIgnoreCase("404")) {
>  throw ase;
>  }
> There are similar bugs elsewhere



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to