Project

General

Profile

Actions

Bug #45789

closed
MW MW

rgw/s3 transfer encoding problems.

Bug #45789: rgw/s3 transfer encoding problems.

Added by Marcus Watts over 6 years ago. Updated over 1 year ago.

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

100%

Source:
Backport:
pacific quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v18.0.0-3393-g1509b581d4
Released In:
v19.2.0~2544
Upkeep Timestamp:
2025-07-14T19:42:07+00:00

Description

rgw has a variety of problems dealing with "transfer-encoding: chunked".

/1/ Unconditionally rejects putobj w/o "content-length".
/2/ does not handle boto2 chunked encoding. boto2 emits weird chunk headers, which the current civetweb new rejects.
/3/ rgw w/ civetweb, when given invalid chunk encoding, leaves the input stream positioned in the midst of the bad data, then tries to read another request out of this. This errors out, generates a 500 error inside of civetweb, and no log message in rgw.

This set of problems occurs in both master & newer versions of luminous.


Related issues 3 (0 open — 3 closed)

Copied to rgw - Backport #59376: quincy: rgw/s3 transfer encoding problems.ResolvedKonstantin Shalygin

Actions
Copied to rgw - Backport #59377: reef: rgw/s3 transfer encoding problems.ResolvedMarcus Watts

Actions
Copied to rgw - Backport #59378: pacific: rgw/s3 transfer encoding problems.RejectedMarcus Watts

Actions

MW Updated by Marcus Watts over 6 years ago Actions #1

I have a fix for most of this, at least for civetweb, coded up for master, which I hope to post shortly.

MW Updated by Marcus Watts over 6 years ago Actions #2

I have posted 2 PRs to address this,

https://github.com/ceph/ceph/pull/35350

https://github.com/ceph/civetweb/pull/35

some of these issues also apply to beast - I don't yet have a fix for those, will probably be another PR or so.

CB Updated by Casey Bodley over 6 years ago Actions #3

  • Status changed from New to In Progress
  • Assignee set to Marcus Watts

MK Updated by Mark Kogan over 3 years ago Actions #4

  • Pull request ID set to 50235

CB Updated by Casey Bodley over 3 years ago Actions #5

  • Status changed from In Progress to Pending Backport
  • Backport set to pacific quincy reef

UB Updated by Upkeep Bot over 3 years ago Actions #6

  • Copied to Backport #59376: quincy: rgw/s3 transfer encoding problems. added

UB Updated by Upkeep Bot over 3 years ago Actions #7

  • Copied to Backport #59377: reef: rgw/s3 transfer encoding problems. added

UB Updated by Upkeep Bot over 3 years ago Actions #8

  • Copied to Backport #59378: pacific: rgw/s3 transfer encoding problems. added

KS Updated by Konstantin Shalygin over 2 years ago Actions #10

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100

UB Updated by Upkeep Bot over 1 year ago Actions #11

  • Merge Commit set to 1509b581d46ec305b31ce63d5cf3b5a1b6bec9f5
  • Fixed In set to v18.0.0-3393-g1509b581d4
  • Released In set to v19.2.0~2544
  • Upkeep Timestamp set to 2025-07-14T19:42:07+00:00
Actions

Also available in: PDF Atom