Project

General

Profile

Actions

Bug #45789

open

rgw/s3 transfer encoding problems.

Added by Marcus Watts almost 4 years ago. Updated about 1 year ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
pacific quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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 (1 open2 closed)

Copied to rgw - Backport #59376: quincy: rgw/s3 transfer encoding problems.NewMarcus WattsActions
Copied to rgw - Backport #59377: reef: rgw/s3 transfer encoding problems.ResolvedMarcus WattsActions
Copied to rgw - Backport #59378: pacific: rgw/s3 transfer encoding problems.RejectedMarcus WattsActions
Actions #1

Updated by Marcus Watts almost 4 years ago

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

Actions #2

Updated by Marcus Watts almost 4 years ago

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.

Actions #3

Updated by Casey Bodley almost 4 years ago

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

Updated by Mark Kogan about 1 year ago

  • Pull request ID set to 50235
Actions #5

Updated by Casey Bodley about 1 year ago

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

Updated by Backport Bot about 1 year ago

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

Updated by Backport Bot about 1 year ago

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

Updated by Backport Bot about 1 year ago

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

Updated by Backport Bot about 1 year ago

  • Tags set to backport_processed
Actions

Also available in: Atom PDF