Bug #3297
closed
Rados Gateway does not handle Transfer-Encoding: chunked
Added by Aaron Schulz over 11 years ago.
Updated over 11 years ago.
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.
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?
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.
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.
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)
- Project changed from Ceph to rgw
- Category deleted (
22)
- Target version deleted (
v0.54b)
- Status changed from New to Rejected
Also available in: Atom
PDF