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

AWS2 S3 component option isIncludeFolders check fails in some cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0, 3.6.0
    • 3.7.0
    • camel-aws2
    • None
    • Unknown

    Description

      with a recent update aws s3 started to send folder keys with the contentType as "application/x-directory; charset=UTF-8" by default

      and the current check in the AWS2S3Consumer.java class only checks for: 

      "application/x-directory".equalsIgnoreCase
      

      on line https://github.com/apache/camel/blob/master/components/camel-aws2-s3/src/main/java/org/apache/camel/component/aws2/s3/AWS2S3Consumer.java#L221

      with this some keys, specially new ones, are not identified as folders and they are consumed as objects when the `isIncludeFolders` is set to false.

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              filipeportes Filipe Portes
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: