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

Remove checksums from default stubs #2889

Merged
merged 3 commits into from
Jul 31, 2023
Merged

Conversation

alextwoods
Copy link
Contributor

@alextwoods alextwoods commented Jul 31, 2023

Fixes #2888

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

  1. To make sure we include your contribution in the release notes, please make sure to add description entry for your changes in the "unreleased changes" section of the CHANGELOG.md file (at corresponding gem). For the description entry, please make sure it lives in one line and starts with Feature or Issue in the correct format.

  2. For generated code changes, please checkout below instructions first:
    https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md

Thank you for your contribution!

@github-actions
Copy link

You have made a change to core without a corresponding change to the CHANGELOG.md. This change will not result in a new version and will not published unless an entry is added to CHANGELOG.md

@alextwoods alextwoods changed the title Dont default checksum_mode when stub_responses is true Remove checksums from default stubs Jul 31, 2023
def remove_checksums(stub)
if @rules && @rules.shape.is_a?(Seahorse::Model::Shapes::StructureShape)
@rules.shape.members.each do |key, member|
if member.location == 'header' && member.location_name.start_with?('x-amz-checksum-')
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should check for the trait, right? Will checksums always be headers, anywhere, and in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The checksums can be on a response without the trait (see s3 head_object). They MUST be headers and they MUST start with 'x-amz-checksums-`

@alextwoods alextwoods merged commit 81238ac into version-3 Jul 31, 2023
27 checks passed
@alextwoods alextwoods deleted the fix_download_checksums branch July 31, 2023 17:55
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.

Checksum validation failed since aws-sdk-s3 1.132.0
2 participants