You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AWS S3 documentation implies that I can specify a ChecksumAlgorithm when starting a streaming upload, and that the SDK will automagically calculate the checksum of uploaded data, and provide it to S3 at the completion of the upload:
And in fact I see references to this in the gems/aws-sdk-s3/CHANGELOG.md file, but am having trouble getting it to work. I tried:
object.upload_stream({checksum_algorithm: "CRC32"}) do |s3_stream|
But I get back: Aws::S3::Errors::InvalidRequest The upload was created using a crc32 checksum. The complete request must include the checksum for each part. It was missing for part 1 in the request.
Expected Behavior
Streaming uploads should support a trailing checksum as per AWS documentation.
Current Behavior
Aws::S3::Errors::InvalidRequest The upload was created using a crc32 checksum. The complete request must include the checksum for each part. It was missing for part 1 in the request.
Reproduction Steps
object = bucket.object("my-bucket-name")
object.upload_stream(:checksum_algorithm => "CRC32") do |s3_stream|
s3_stream.upload "a bunch of data"
end
Possible Solution
No response
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-s3
Environment details (Version of Ruby, OS environment)
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
The AWS S3 documentation implies that I can specify a ChecksumAlgorithm when starting a streaming upload, and that the SDK will automagically calculate the checksum of uploaded data, and provide it to S3 at the completion of the upload:
https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#trailing-checksums
And in fact I see references to this in the
gems/aws-sdk-s3/CHANGELOG.md
file, but am having trouble getting it to work. I tried:But I get back: Aws::S3::Errors::InvalidRequest The upload was created using a crc32 checksum. The complete request must include the checksum for each part. It was missing for part 1 in the request.
Expected Behavior
Streaming uploads should support a trailing checksum as per AWS documentation.
Current Behavior
Aws::S3::Errors::InvalidRequest The upload was created using a crc32 checksum. The complete request must include the checksum for each part. It was missing for part 1 in the request.
Reproduction Steps
object = bucket.object("my-bucket-name")
object.upload_stream(:checksum_algorithm => "CRC32") do |s3_stream|
s3_stream.upload "a bunch of data"
end
Possible Solution
No response
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-s3
Environment details (Version of Ruby, OS environment)
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
The text was updated successfully, but these errors were encountered: