Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16068

Camel-AWS2-S3: Fix condition for throwing exception in case bucket does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.7.0
    • 3.7.2, 3.8.0
    • camel-aws2
    • None
    • camel-aws2-s3:3.7.0

    • Unknown

    Description

      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

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            weborld fly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: