PutObject reads underlying stream twice (even with PayloadSigningPolicy::Never) #1688
Closed
2 tasks done
Labels
bug
This issue is a bug.
needs-review
This issue or pull request needs review from a core team member.
p2
This is a standard priority issue
pending-release
This issue will be fixed by an approved PR that hasn't been released yet.
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
When destination endpoint is not
HTTPS
-- stream passed toPutObject()
gets read twice: to calculate a hash (during signature calculation) and to send payload into the socket. This should not happen when payload signing policy is set toNever
. This line is responsible for this behaviour.SDK version number
1.9.44
Platform/OS/Hardware/Device
Windows, Linux
Expected behavior
I expect stream to be read only once if payload is not signed (regardless of the endpoint type).
Additional context
This is a variation of #711
The text was updated successfully, but these errors were encountered: