Skip to content

Fix for Default MD5 check getting skipped even when http checksum algorithm is not set #3748

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
Feb 8, 2023

Conversation

joviegas
Copy link
Contributor

@joviegas joviegas commented Feb 7, 2023

Motivation and Context

  • By default for putRequest Md5 checksum validation should happen. By default as in when the new http checksum is not set to any algorithm.

  • Currently it was skipping since the check was directly checking for ResolvedChecksum specs even when request algorithm were null.

  • Note that this validation is done in S3 when httpChecksum algorithm is set.

Modifications

  • Added checks to check for requestAlgorithms.

Testing

  • Added new Test cases for putObject

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

License

  • I confirm that this pull request can be released under the Apache 2 license

@joviegas joviegas requested a review from a team as a code owner February 7, 2023 06:33
@joviegas joviegas force-pushed the joviegas/checksum_and_crc32 branch 2 times, most recently from 3c9e027 to 9b03a7b Compare February 7, 2023 06:39
@joviegas joviegas force-pushed the joviegas/checksum_and_crc32 branch from 9b03a7b to 120fc96 Compare February 7, 2023 15:56
@@ -0,0 +1,6 @@
{
"type": "bugfix",
"category": "AWS SDK for Java v2",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this just S3?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@joviegas joviegas enabled auto-merge (squash) February 7, 2023 22:27
@joviegas joviegas merged commit 232a84f into master Feb 8, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@joviegas joviegas deleted the joviegas/checksum_and_crc32 branch May 15, 2024 20:32
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.

2 participants