Project

General

Profile

Actions

Bug #69936

closed

s3 GetObject returns wrong checksum for Range requests

Added by Casey Bodley about 1 year ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
s3 checksum
Fixed In:
v19.3.0-8044-g7307a3def7
Released In:
v20.2.0~976
Upkeep Timestamp:
2025-11-01T01:29:23+00:00

Description

for GetObject requests with a Range header, rgw should calculate/return a checksum for the requested range of bytes instead of the stored checksum header

reproducer in https://github.com/ceph/s3-tests/pull/619:

FAILED s3tests_boto3/functional/test_s3.py::test_multipart_copy_small - botocore.exceptions.FlexibleChecksumError: Expected checksum 4AAr8A== did not match calculated checksum: WbxXZw==
FAILED s3tests_boto3/functional/test_s3.py::test_multipart_copy_special_names - botocore.exceptions.FlexibleChecksumError: Expected checksum g2eXRw== did not match calculated checksum: qgUmLw==
FAILED s3tests_boto3/functional/test_s3.py::test_multipart_copy_multiple_sizes - botocore.exceptions.FlexibleChecksumError: Expected checksum R9Y9Og== did not match calculated checksum: WRq9Ww==
FAILED s3tests_boto3/functional/test_s3.py::test_ranged_request_response_code - botocore.exceptions.FlexibleChecksumError: Expected checksum kC/QBA== did not match calculated checksum: 50r44A==
FAILED s3tests_boto3/functional/test_s3.py::test_ranged_big_request_response_code - botocore.exceptions.FlexibleChecksumError: Expected checksum oDTwIA== did not match calculated checksum: JW3gew==
FAILED s3tests_boto3/functional/test_s3.py::test_ranged_request_skip_leading_bytes_response_code - botocore.exceptions.FlexibleChecksumError: Expected checksum kC/QBA== did not match calculated checksum: /sUwqQ==
FAILED s3tests_boto3/functional/test_s3.py::test_ranged_request_return_trailing_bytes_response_code - botocore.exceptions.FlexibleChecksumError: Expected checksum kC/QBA== did not match calculated checksum: /sUwqQ==


Related issues 1 (1 open0 closed)

Related to rgw-testing - Bug #64801: s3tests: unpin botocore versionIn Progress

Actions
Actions #1

Updated by Casey Bodley about 1 year ago

  • Description updated (diff)
Actions #2

Updated by Casey Bodley about 1 year ago

  • Related to Bug #64801: s3tests: unpin botocore version added
Actions #3

Updated by Casey Bodley about 1 year ago

  • Status changed from New to Fix Under Review
  • Assignee changed from Matt Benjamin to Casey Bodley
  • Pull request ID set to 61901
Actions #4

Updated by Casey Bodley about 1 year ago

  • Status changed from Fix Under Review to Resolved
Actions #5

Updated by Upkeep Bot 10 months ago

  • Merge Commit set to 7307a3def7e1efaf693919e2d5ad07cfbdb3066a
  • Fixed In set to v19.3.0-8044-g7307a3def7e
  • Upkeep Timestamp set to 2025-07-09T22:40:29+00:00
Actions #6

Updated by Upkeep Bot 10 months ago

  • Fixed In changed from v19.3.0-8044-g7307a3def7e to v19.3.0-8044-g7307a3def7
  • Upkeep Timestamp changed from 2025-07-09T22:40:29+00:00 to 2025-07-14T18:14:14+00:00
Actions #7

Updated by Upkeep Bot 6 months ago

  • Released In set to v20.2.0~976
  • Upkeep Timestamp changed from 2025-07-14T18:14:14+00:00 to 2025-11-01T01:29:23+00:00
Actions

Also available in: Atom PDF