Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-14011

AWS SDK2 S3FileSystem MultiPart Copy sets incorrect request parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 2.29.0, 2.30.0, 2.31.0, 2.32.0, 2.33.0, 2.34.0, 2.35.0, 2.36.0
    • 2.38.0
    • io-java-aws
    • None

    Description

      The following code locations use incorrect parameters:
      Here and Here specifies the sourcePath instead of the destinationPath.

      Here specifies destinationPath.getBucket() instead of sourcePath.getBucket()

      Here specifies a constant part number of 1, instead of using the partNumber variable.

      Taken together, these issues cause multipart copies to fail due to:

      software.amazon.awssdk.services.s3.model.NoSuchUploadException: The specified upload does not exist. The upload ID may be invalid, or the upload may have been aborted or completed.
      

      If the object references are fixes, the part number issue causes multipart copies to fail due to:

      software.amazon.awssdk.services.s3.model.S3Exception: The list of parts was not in ascending order. Parts must be ordered by part number. 
      

      Note: I checked the AWS SDK1 S3FileSystem and did not see the same issues.

      Attachments

        Issue Links

          Activity

            People

              stephenpatel Stephen Patel
              stephenpatel Stephen Patel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h 10m
                  5h 10m