aws-sdk-go-v2 icon indicating copy to clipboard operation
aws-sdk-go-v2 copied to clipboard

chunked transfer with s3 ops doesn't respect explicit content length with io.PipeReader

Open lucix-aws opened this issue 1 year ago • 3 comments

See #2511.

We have a special case for io.PipeReader that sets request ContentLength to -1, which is at odds with certain payload signing schemes in S3.

Unclear whether we'll be able to fix this long-term given that it may be behaviorally sensitive.

lucix-aws avatar Feb 21 '24 17:02 lucix-aws

Hi I see this has been tagged with workaround-available, would you mind sharing what that is?

charlesyu108 avatar Mar 26 '25 22:03 charlesyu108

Same here - would really appreciate the workaround if available 🙇

remore avatar May 30 '25 02:05 remore

Hi @lucix-aws could you share the work around, please?

Ernestet avatar May 30 '25 07:05 Ernestet