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 copy-source format validation #10338

Merged
merged 2 commits into from Feb 29, 2024
Merged

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Feb 27, 2024

Motivation

As reported in #10328, we would not properly validate the CopySource parameter before parsing it.

Changes

Added a check for the presence of / before splitting, and a test for the case.

fixes #10328

@bentsku bentsku added aws:s3 Amazon Simple Storage Service semver: patch Non-breaking changes which can be included in patch releases labels Feb 27, 2024
@bentsku bentsku added this to the 3.2 milestone Feb 27, 2024
@bentsku bentsku self-assigned this Feb 27, 2024
@bentsku bentsku force-pushed the fix-s3-copy-source-validation branch from 29f9c57 to 8565452 Compare February 27, 2024 11:34
@bentsku bentsku force-pushed the fix-s3-copy-source-validation branch from 8565452 to 3b51208 Compare February 27, 2024 11:51
Copy link

S3 Image Test Results (AMD64 / ARM64)

  2 files    2 suites   3m 16s ⏱️
390 tests 339 ✅  51 💤 0 ❌
780 runs  678 ✅ 102 💤 0 ❌

Results for commit 3b51208.

@coveralls
Copy link

Coverage Status

coverage: 83.823% (+0.02%) from 83.803%
when pulling 3b51208 on fix-s3-copy-source-validation
into 4743245 on master.

Copy link

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 27m 48s ⏱️ - 2m 3s
2 662 tests +1  2 411 ✅ +1  251 💤 ±0  0 ❌ ±0 
2 664 runs  +1  2 411 ✅ +1  253 💤 ±0  0 ❌ ±0 

Results for commit 3b51208. ± Comparison against base commit 4743245.

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.

Thanks for fixing this. LGTM 🚀

@bentsku bentsku merged commit 307cbe9 into master Feb 29, 2024
38 checks passed
@bentsku bentsku deleted the fix-s3-copy-source-validation branch February 29, 2024 11:54
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: S3 CopyObject returns 500 - Internal error
3 participants