Files
floci/src/test/java
Ahmed Soliman 25d6988950 fix(s3): omit whole-object checksum headers on range responses (#1040)
PR #923 routed handleRangeRequest through appendObjectHeaders so 206
partial-content responses would pick up stored headers and response-*
overrides. That also pulled in appendChecksumHeaders, which emits
obj.getChecksum() — the whole-object checksum — onto partial responses.

SDKs that validate the checksum against the received body then fail, e.g.
a `bytes=4-7` GET returns the full-object CRC64NVME and the AWS CLI reports:

    Expected checksum CRSFynAYcw4= did not match calculated checksum: LQYlQwQYKmA=

Real S3 does not return whole-object checksum headers on ranged responses.
Add an includeChecksum flag to appendObjectHeaders (defaults true for the
existing GET/HEAD callers) and pass false from handleRangeRequest. The
override + restored-header improvements from #923 are unaffected.

Reported by @dwhjames on #923.
2026-05-26 22:34:44 -05:00
..