Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix S3 PutObject with MD5 and enabled ARN Partition Rewriting #9233

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

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

alexrashed
Copy link
Member

Motivation

#9064 introduced the MD5 checks for S3's PutObject operation.
Until now, the ARN Partition Rewriting did not update the MD5 hashes in requests.
This now causes issues with the MD5 check in S3, since the checksum is verified, but the content is maybe modified due to the rewriting.

Changes

  • Replaces the Content-MD5 header with a new value in case it is set.

@alexrashed alexrashed added the semver: patch Non-breaking changes which can be included in patch releases label Sep 26, 2023
@alexrashed alexrashed requested a review from bentsku September 26, 2023 13:24
@alexrashed alexrashed requested a review from thrau as a code owner September 26, 2023 13:24
@alexrashed alexrashed self-assigned this Sep 26, 2023
Copy link
Contributor

@bentsku bentsku left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for quickly explaining the background on this! Solution looks good 👍

@coveralls
Copy link

Coverage Status

coverage: 83.025% (-0.04%) from 83.064% when pulling 9017c65 on fix-arn-rewriting-s3-put into 9ccb39c on master.

@alexrashed alexrashed merged commit 4d376bf into master Sep 26, 2023
@alexrashed alexrashed deleted the fix-arn-rewriting-s3-put branch September 26, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants