-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UploadInput.ContentMD5 silently ignored for large files #2500
Comments
Hi @eriksw, thanks for reaching out to us and I do apologize for the long delay in response from our end. The behavior you're seeing for Multipart uploads is expected - the As a result, you are right in that the uploader cannot ensure file consistency in a multipart upload by way of comparing the |
Although it's very much required on the server side when Object Lock is in play, I'm pretty sure it's in effect never required when using Because there's no way for The struct field documentation as it currently exists:
|
We have noticed this issue has not received attention in 1 year. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue. |
This issue should not be closed. It is still present in v1.34.10.
|
Thanks for reaching out with this issue @eriksw. In the SDK's latest release v1.43.6, we've added documentation to the Uploader and its UploadInput.ContentMD5 parameter to clarify the behavior of the SDK, and its handling of In addition, the AWS SDK for Go v2's usage of ContentMD5 has improved and more robust with the latest release, feature/s3/[email protected] supporting checking object integrity via the new |
Please fill out the sections below to help us address your issue.
Version of AWS SDK for Go?
Version of Go (
go version
)?What issue did you see?
When using s3manager.Uploader to upload files, when an incorrect
ContentMD5
is set on theUploadInput
, the behavior depends on the size of the file being uploaded:The behavior of uploading using
s3manager.Uploader
whenUploadInput.ContentMD5
does not match the actual Body being uploaded should be consistent regardless of theBody
size.Silently failing to effect my intention as an user (that the object will only appear in the bucket if its overall md5 matches what I set in
ContentMD5
) is completely unacceptable.If there's no way for
Uploader
to ensure that a providedContentMD5
actually matches what winds up in the bucket, that option needs to be removed, or an error should be thrown to bring the issue to the api user's attention.Steps to reproduce
The text was updated successfully, but these errors were encountered: