]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/cksum: GetObject omits checksum headers for Range requests 61901/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 19 Feb 2025 15:13:04 +0000 (10:13 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 25 Feb 2025 16:56:11 +0000 (11:56 -0500)
commit53098baf693353f65e19c8958ca2408b82b2b7a3
treec6a7ebf59d7046e381e971832b31a3b2b4909293
parent89f21db321ddd404654b0064a61b0aa5428d6f7e
rgw/cksum: GetObject omits checksum headers for Range requests

if we send response headers containing full-object checksums, clients
will compare them with the returned data and fail with:

> botocore.exceptions.FlexibleChecksumError: Expected checksum 4AAr8A== did not match calculated checksum: WbxXZw==

the only thing aws docs[1] say about Range requests refers to multipart
uploads:

> For completed uploads, you can get an individual part's checksum by using the GetObject or HeadObject operations and specifying a part number or byte range that aligns with a single part.

Fixes: https://tracker.ceph.com/issues/69936
[1] https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#Part-level-checksums

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest_s3.cc