swift cli does not send content-length header to create container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
Fix Released
|
Undecided
|
Sam Morrison |
Bug Description
My configuration has swift-proxy behind nginx.
The problem occurs with respect to uploading to a container that doesn't exist or using the swift client 'post' command to create one:
swift -A https:/
OR
swift -A https:/
both will generate a 411 error "content-length header not set error" in nginx and not pass the request on to swift-proxy.
I think swift cli is not compliant with RFC2616:
For compatibility with HTTP/1.0 applications, HTTP/1.1 requests containing a message-body MUST include a valid Content-Length header field unless the server is known to be HTTP/1.1 compliant. If a request contains a message-body and a Content-Length is not given, the server SHOULD respond with 400 (bad request) if it cannot determine the length of the message, or with 411 (length required) if it wishes to insist on receiving a valid Content-Length. (http://
Changed in swift: | |
assignee: | nobody → Ken Pepple (ken-pepple) |
tags: | added: python-swiftclient |
affects: | swift → python-swiftclient |
Changed in python-swiftclient: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/5167
Review: https:/