]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/s3: remove 'aws-chunked' from Content-Encoding response
authorCasey Bodley <cbodley@redhat.com>
Thu, 10 Jul 2025 13:47:04 +0000 (09:47 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 25 Aug 2025 16:24:35 +0000 (12:24 -0400)
commite1dfc14e7052c1e12c3364874f37ab361e1f7c1c
treee7da09be47007757a12a1d522cb695948e91afd9
parent2489b60d9ed18c83d6317204e8e719577165a107
rgw/s3: remove 'aws-chunked' from Content-Encoding response

PutObject stores some of the generic http request headers in object
attrs so they can be returned as response headers in Get/HeadObject

S3 has its own `aws-chunked` value for the `Content-Encoding` header,
which it says does _not_ get stored with the object or returned with
Get/HeadObject

we've been storing this header with objects forever, so omitting the
value on PutObject doesn't fix the issue for existing objects. instead,
add the necessary filtering to Get/HeadObject

Fixes: https://tracker.ceph.com/issues/21128
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 4a802b864a6f9d45506197dfb1bc23cf852e51f8)
src/rgw/rgw_rest_s3.cc