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

fix S3 v3 HeadObject with checksum #9297

Merged
merged 2 commits into from Oct 5, 2023
Merged

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Oct 5, 2023

Motivation

As reported in #6659 (comment), calling HeadObject on a an object with ChecksumMode=ENABLED will raise an exception. I totally missed it when copy/pasting the implementation from GetObject, because of a #noqa put there because of typing (dynamic key value inside the *Response object).

Changes

Fixed the line to use the object checksum instead of a non-existent variable.
I've also removed all the noqa from the provider because some type warnings are better than fully failing that this.

@bentsku bentsku added aws:s3 Amazon Simple Storage Service semver: patch Non-breaking changes which can be included in patch releases labels Oct 5, 2023
@bentsku bentsku requested a review from thrau October 5, 2023 17:41
@bentsku bentsku self-assigned this Oct 5, 2023
Copy link
Member

@thrau thrau left a comment

Choose a reason for hiding this comment

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

thanks for the super speedy fix @bentsku , and thanks for reporting @bdurrani!

@github-actions
Copy link

github-actions bot commented Oct 5, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 8m 36s ⏱️
2 243 tests 1 741 ✔️ 502 💤 0
2 244 runs  1 741 ✔️ 503 💤 0

Results for commit cfd8d90.

@coveralls
Copy link

Coverage Status

coverage: 83.094% (+0.02%) from 83.078% when pulling cfd8d90 on fix-s3-v3-head-obj-checksum into 59bb397 on master.

@bentsku bentsku merged commit c7b8b95 into master Oct 5, 2023
26 checks passed
@bentsku bentsku deleted the fix-s3-v3-head-obj-checksum branch October 5, 2023 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:s3 Amazon Simple Storage Service 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.

None yet

3 participants