Skip to content
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

s3 put object with object lock header check #8672

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Frank-Schmutz
Copy link

The current version of moto requires the Content-Md5 header to be provided when uploading an object with a retention configured using object lock.
However the AWS documentation specifies that the x-amz-sdk-checksum-algorithm header may be provided instead (AWS doc reference). I can confirm that the documentation is accurate after having performed a couple tests including the latter header instead of the content md5 one.
This issue is relevant since botocore does not compute and include the content md5 automatically since version 1.36.0, see changelog.

@Frank-Schmutz
Copy link
Author

Resolves #8662

Copy link
Collaborator

@bpandola bpandola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Frank-Schmutz Thanks for this. Can you provide a test case that uses the x-amz-sdk-checksum-algorithm header?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants