Bug #3297
Rados Gateway does not handle Transfer-Encoding: chunked
0%
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.
History
#1 Updated by Yehuda Sadeh almost 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?
#2 Updated by Aaron Schulz almost 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.
#3 Updated by Yehuda Sadeh almost 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.
#4 Updated by Aaron Schulz almost 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)
#6 Updated by Sage Weil almost 11 years ago
- Project changed from Ceph to rgw
- Category deleted (
22) - Target version deleted (
v0.54b)
#7 Updated by Yehuda Sadeh almost 11 years ago
- Status changed from New to Rejected