]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: aws-chunked need not supply any content-length
authorMatt Benjamin <mbenjamin@redhat.com>
Sun, 18 May 2025 01:02:34 +0000 (21:02 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 12 Jun 2025 17:35:53 +0000 (13:35 -0400)
commit0624dbbc3bd10f816262d5e096fa7b147231b2fb
tree035faca6c0ee3be8e123b225dfcbc49a14f91083
parent1bd625a613a180a340ec7c9d08e9050ddd498446
rgw: aws-chunked need not supply any content-length

The updated logic for aws chunked handling (2024) appears sufficient
to handle the cases produced by aws-sdk-go-v2.

Note that https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html
states that "For all requests, you must include the
x-amz-decoded-content-length header, specifying the size of the object in
bytes." (accessed 5/17/2025) (but now we do not enforce it).

Reported (with reproducer!) by: Fred Heinecke.

Fixes: https://tracker.ceph.com/issues/71183
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_auth_s3.cc
src/rgw/rgw_op.cc