Skip to content

fix: Fix MD5 middleware codegen & runtime code to match spec#885

Merged
sichanyoo merged 3 commits intomainfrom
feat/flexible-checksum-v2
Jan 14, 2025
Merged

fix: Fix MD5 middleware codegen & runtime code to match spec#885
sichanyoo merged 3 commits intomainfrom
feat/flexible-checksum-v2

Conversation

@sichanyoo
Copy link
Contributor

@sichanyoo sichanyoo commented Dec 14, 2024

Corresponding PR: awslabs/aws-sdk-swift#1803

Issue #

1516

Description of changes

  • Restrict both the codegen criteria for ContentMD5Middleware and runtime criteria in ContentMD5Middleware for MD5 hash calculation to match spec. MD5 will be phased out by flexible checksum in the future.
  • For users that really need to continue to use Content-MD5 headers, they can still provide it as input members. It will then be serialized in to the request automatically. What the change in this PR does is effectively turning off SDK from automatically calculating the MD5 checksum for users and instead using flexible checksums behind the scenes.

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

… hash calculation critera in runtime code.
@sichanyoo sichanyoo merged commit 132eea3 into main Jan 14, 2025
27 checks passed
@sichanyoo sichanyoo deleted the feat/flexible-checksum-v2 branch January 14, 2025 21:21
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