Project

General

Profile

Actions

Bug #3297

closed

Rados Gateway does not handle Transfer-Encoding: chunked

Added by Aaron Schulz over 11 years ago. Updated over 11 years ago.

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

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

You can test this using curl & bash to PUT and object using Transfer-Encoding: chunked and thus no Content-Length header (per specs). The gateway will return a 411 (No Content-Header provided). This works and is supported in Swift.

Actions #1

Updated by Yehuda Sadeh over 11 years ago

What version are you using? It actually is supported, but it might be that your fastcgi module swallows it. What fastcgi module are you using?

Actions #2

Updated by Aaron Schulz over 11 years ago

Yehuda Sadeh wrote:

What version are you using? It actually is supported, but it might be that your fastcgi module swallows it. What fastcgi module are you using?

I'll try to post all the version info when I have access to my test machine next monday. I just followed http://ceph.com/docs/master/start/quick-start/ on ubuntu (started install two days ago).

I should mention that the PUT was actually for a zero-byte file. It was part of some MediaWiki unit tests for filebackends. The case of chunked transfer for a 0-byte file is kind of silly and was only hit due to a bug in PHP cloudfiles. It definitely works with native swift and consistently gave 411s with the gateway.

Actions #3

Updated by Yehuda Sadeh over 11 years ago

Yeah, looking at the docs now I can't find a concrete reference to the fastcgi module. So the issue is that the fastcgi module that you're using does not handle chunked encoding. The solution is to use the alternative fastcgi module that we provide. I'll open an issue to fix the docs.

Actions #4

Updated by Aaron Schulz over 11 years ago

Some version info:
apache2 (2.2.22-1ubuntu1) precise; urgency=low
libapache-mod-fastcgi (2.4.7~0910052141-1) unstable; urgency=low
ceph version 0.48.2argonaut (commit:3e02b2fad88c2a95d9c0c86878f10d1beb780bfe)

Actions #6

Updated by Sage Weil over 11 years ago

  • Project changed from Ceph to rgw
  • Category deleted (22)
  • Target version deleted (v0.54b)
Actions #7

Updated by Yehuda Sadeh over 11 years ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF