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

Warning message logged for S3 multipart uploads

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.12.0
    • 3.14.0
    • camel-aws2
    • $ java -version
      openjdk version "1.8.0_272"
      OpenJDK Runtime Environment Corretto-8.272.10.3 (build 1.8.0_272-b10)
      OpenJDK 64-Bit Server VM Corretto-8.272.10.3 (build 25.272-b10, mixed mode)

    • Patch Available
    • Novice

    Description

      When uploading a file to S3 using multipart uploads, a warning message is logged for each one:

      "While trying to upload the file {} file, 0 bytes were skipped"

      This seems to have been introduced by some static analysis fixes in

      https://github.com/apache/camel/pull/5842/files#diff-69d246dde09cb26ec2795e3fa893ba7e969dba1a1aa9f361a03ced8976a9535b

       

      For the first iteration of the loop, filePosition is expected to be zero so this is the expected return value.

      Does not seem to affect any functionality, just an unnecessary warning is logged

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              joeoconnor Joe O'Connor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: