-
Notifications
You must be signed in to change notification settings - Fork 81
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: Fix signer to allow streaming unsigned payload without checksum & add integration test #1671
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments for reviewers
IntegrationTests/Services/AWSS3IntegrationTests/S3FlexibleChecksumsTests.swift
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple minor fixes & questions
IntegrationTests/Services/AWSS3IntegrationTests/S3FlexibleChecksumsTests.swift
Show resolved
Hide resolved
@@ -256,12 +256,14 @@ public class AWSSigV4Signer: SmithyHTTPAuthAPI.Signer { | |||
} | |||
} | |||
|
|||
// STREAMING-UNSIGNED-PAYLOAD-TRAILER | |||
if isUnsignedBody { return .streamingUnsignedPayloadTrailer } | |||
|
|||
// streaming + eligible for chunked transfer | |||
if !checksumIsPresent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we reverse this if-else
? Weird to have a negated condition for an if-else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this whole if-else can now break down to one statement BTW
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed as suggested.
Issue #
#1660
Description of changes
Refer to comments on GH diff for details
New/existing dependencies impact assessment, if applicable
Conventional Commits
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.