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

add test for DeleteObjects encoding #9431

Merged
merged 4 commits into from
Oct 23, 2023
Merged

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Oct 22, 2023

Motivation

As reported in #9428, there's an issue with the URL encoding of S3 object keys. This is an issue in moto, and it's working properly in our v3 provider.

I have a PR open here: getmoto/moto#6933 but there's still some issue. This PR would only be green once the upstream fix is part of moto-ext, so I will xfail it for v2 until the PR is merged as it's a big change (it requires moto to use RAW_URI as well and change how to handle raw path with the update of werkzeug, they are manually re-encoding the path and it has some drawbacks for some edge cases like emoji), knowing that v3 is going to become default soon so I'd like to have it tested already now.

Changes

Only introducing tests to validate the proper behaviour.

@bentsku bentsku added aws:s3 Amazon Simple Storage Service semver: patch Non-breaking changes which can be included in patch releases labels Oct 22, 2023
@bentsku bentsku self-assigned this Oct 22, 2023
@bentsku bentsku requested a review from macnev2013 as a code owner October 22, 2023 02:23
@coveralls
Copy link

coveralls commented Oct 22, 2023

Coverage Status

coverage: 82.962% (-0.005%) from 82.967% when pulling 860d7f9 on fix-s3-delete-objects-encoding into 28401c2 on master.

@github-actions
Copy link

github-actions bot commented Oct 22, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 18m 30s ⏱️
2 268 tests 1 691 ✔️ 577 💤 0
2 269 runs  1 691 ✔️ 578 💤 0

Results for commit 860d7f9.

♻️ 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 💯

@bentsku bentsku force-pushed the fix-s3-delete-objects-encoding branch from b69f58b to 860d7f9 Compare October 23, 2023 20:29
@bentsku bentsku merged commit ada0bc4 into master Oct 23, 2023
12 checks passed
@bentsku bentsku deleted the fix-s3-delete-objects-encoding branch October 23, 2023 23:22
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.

3 participants