Rados Gateway does not handle Transfer-Encoding: chunked
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.
#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.