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

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.0
    • Fix Version/s: 3.7.2, 3.8.0
    • Component/s: camel-aws2
    • Labels:
      None
    • Environment:

      camel-aws2-s3:3.7.0

    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: