Thanks to visit codestin.com
Credit goes to github.com

Skip to content

S3 ASF fix VersionId and Expires, implement ResponseHeaders override #6906

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

Merged
merged 2 commits into from
Sep 26, 2022

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Sep 21, 2022

This PR implement fixes to bugs that are also present in the current provider, coming from moto.
The VersionId would be present when it should not be, added logic to the versioning for that.
When PutObject would be used with a pre-signed URL signed with SigV2, the object would be instantly expired because moto merges headers and query string parameters, and the signature contains an Expires query parameter which would be treated as the Expires header.

It also implement the Response{Headers} overriding behaviour.

@bentsku bentsku temporarily deployed to localstack-ext-tests September 21, 2022 13:32 Inactive
@bentsku bentsku temporarily deployed to localstack-ext-tests September 21, 2022 14:34 Inactive
@github-actions
Copy link

github-actions bot commented Sep 21, 2022

LocalStack integration with Pro

1 301 tests  +8   1 176 ✔️ +7   48m 53s ⏱️ +11s
       1 suites ±0      125 💤 +1 
       1 files   ±0          0 ±0 

Results for commit 8f6b642. ± Comparison against base commit 79a0434.

♻️ This comment has been updated with latest results.

@bentsku bentsku mentioned this pull request Sep 21, 2022
@bentsku bentsku temporarily deployed to localstack-ext-tests September 26, 2022 14:02 Inactive
@bentsku bentsku changed the title WIP: S3 ASF fix VersionId and Expires, implement ResponseHeaders override S3 ASF fix VersionId and Expires, implement ResponseHeaders override Sep 26, 2022
@bentsku bentsku temporarily deployed to localstack-ext-tests September 26, 2022 14:06 Inactive
@bentsku bentsku marked this pull request as ready for review September 26, 2022 14:06
@bentsku bentsku requested a review from thrau as a code owner September 26, 2022 14:06
@bentsku bentsku temporarily deployed to localstack-ext-tests September 26, 2022 17:30 Inactive
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 79.734% when pulling 8f6b642 on s3-asf-fix-bug into 79a0434 on master.

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.

LGTM!

@bentsku bentsku merged commit 5a25ae7 into master Sep 26, 2022
@bentsku bentsku deleted the s3-asf-fix-bug branch September 26, 2022 21:53
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.

3 participants