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 EncodingType in List* operations #9429

Merged
merged 4 commits into from Oct 23, 2023
Merged

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Oct 21, 2023

Motivation

As reported in #9427, we would return EncodingType even when not specified. It was because of a wrong assumption on my side because boto always adds the parameter, which seemed like it was default.

Changes

Corrected the behaviour and validated it by using an HTTP client instead of boto and manually asserting the absence of the EncodingType field and the change in behaviour.

Also sneaked a tiny test for DeleteBucketPolicy validating a question here: #9404 (comment)

fixes #9427

@bentsku bentsku added aws:s3 Amazon Simple Storage Service semver: patch Non-breaking changes which can be included in patch releases labels Oct 21, 2023
@bentsku bentsku self-assigned this Oct 21, 2023
@coveralls
Copy link

coveralls commented Oct 21, 2023

Coverage Status

coverage: 82.927% (-0.01%) from 82.939% when pulling d0be1d5 on fix-s3-list-encoding into 375b379 on master.

@github-actions
Copy link

github-actions bot commented Oct 21, 2023

LocalStack Community integration with Pro

       2 files  ±0         2 suites  ±0   1h 8m 33s ⏱️ + 1m 45s
2 264 tests +2  1 689 ✔️ +2  575 💤 ±0  0 ±0 
2 265 runs  +2  1 689 ✔️ +2  576 💤 ±0  0 ±0 

Results for commit d0be1d5. ± Comparison against base commit 375b379.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@macnev2013 macnev2013 left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

Just two minor concerns.

tests/aws/services/s3/test_s3.py Show resolved Hide resolved
tests/aws/services/s3/test_s3.py Outdated Show resolved Hide resolved
@bentsku bentsku merged commit fb929d7 into master Oct 23, 2023
27 checks passed
@bentsku bentsku deleted the fix-s3-list-encoding branch October 23, 2023 19:13
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.

bug: ListObjectsV2 Returns EncodingType When Not Specified
3 participants