Project

General

Profile

Actions

Bug #71607

closed
RJ CB

v4 signature w/ Transfer-Encoding: chunked and empty payload triggers NotImplemented false reject

Bug #71607: v4 signature w/ Transfer-Encoding: chunked and empty payload triggers NotImplemented false reject

Added by Robin Johnson over 1 year ago. Updated about 1 month ago.

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

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-2959-g8470acfa0b
Released In:
v21.2.0~2082
Upkeep Timestamp:
2026-10-24T01:41:05+00:00

Description

Splitting out from https://github.com/ceph/ceph/pull/47773
That PR was filed 3 years ago, and never made progress, I don't think it was ever tracked correctly in Redmine.
I have also NOT verified the latest state of RGW for this.

Some operations meaningfully have an explicit Content-Length:0, which is correctly handled via the is_v4_payload_empty call.

There are two alternate encodings of those that are NOT handled correctly by is_v4_payload_empty.

a) Header "Transfer-Encoding: chunked" w/ an zero-byte chunk meaning end of data
b) HTTP/2: Only DATA frames of zero length before End-of-stream marker.

In both cases, checking for the sha256 of empty input, "AWS4_EMPTY_PAYLOAD_HASH" along with zero actual length is sufficient.

At the time of writing, S3-tests did NOT support the transforms to test any Content-Length:0 request in the alternate encoding modes.

LG Updated by Lenz Grimmer over 1 year ago Actions #1

FWIW, this still seems to be an issue at least on Ceph Reef. There's a GitHub issue that provides additional details and a link to a reproducer (reported against DigitalOcean's S3-compatible Object Storage, which is based on Ceph):

Error when using HTTP2 for AWS S3 request
soto-s3-digitalocean

JI Updated by J. Eric Ivancich over 1 year ago Actions #2

  • Assignee set to Matt Benjamin

CB Updated by Casey Bodley over 1 year ago Actions #3

  • Status changed from New to Fix Under Review
  • Assignee changed from Matt Benjamin to Casey Bodley
  • Pull request ID set to 64569

UB Updated by Upkeep Bot about 1 year ago Actions #4

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 8470acfa0b175a5c01f1be37a5b378369373db29
  • Fixed In set to v20.3.0-2959-g8470acfa0b
  • Upkeep Timestamp set to 2025-09-12T02:17:44+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #5

  • Released In set to v21.2.0~2082
  • Upkeep Timestamp changed from 2025-09-12T02:17:44+00:00 to 2026-10-24T01:41:05+00:00
Actions

Also available in: PDF Atom