fail to upload object if swift proxy-server is deployed in apache 2.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
LIU Yulong |
Bug Description
fail to upload object if swift proxy-server is deployed in apache 2.4:
Environment:
Ubuntu 14.04.1 LTS
horizon (github master branch source code install)
python-swiftclient (github master branch source code install)
swift (github master branch source code install)
Apache/2.4.7 log:
[Sun Dec 07 00:26:55.329422 2014] [:error] [pid 18608:tid 140692826650368] WARNING:
[Sun Dec 07 00:26:55.329525 2014] [:error] [pid 18608:tid 140692826650368] REQ: curl -i http://
[Sun Dec 07 00:26:55.329935 2014] [:error] [pid 18608:tid 140692826650368] RESP STATUS: 411 Length Required
[Sun Dec 07 00:26:55.330003 2014] [:error] [pid 18608:tid 140692826650368] RESP HEADERS: [('date', 'Sat, 06 Dec 2014 16:26:55 GMT'), ('content-length', '318'), ('content-type', 'text/html; charset=
[Sun Dec 07 00:26:55.330050 2014] [:error] [pid 18608:tid 140692826650368] RESP BODY: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
[Sun Dec 07 00:26:55.330058 2014] [:error] [pid 18608:tid 140692826650368] <html><head>
[Sun Dec 07 00:26:55.330063 2014] [:error] [pid 18608:tid 140692826650368] <title>411 Length Required</title>
[Sun Dec 07 00:26:55.330068 2014] [:error] [pid 18608:tid 140692826650368] </head><body>
[Sun Dec 07 00:26:55.330073 2014] [:error] [pid 18608:tid 140692826650368] <h1>Length Required</h1>
[Sun Dec 07 00:26:55.330078 2014] [:error] [pid 18608:tid 140692826650368] <p>A request of the requested method PUT requires a valid Content-length.<br />
[Sun Dec 07 00:26:55.330083 2014] [:error] [pid 18608:tid 140692826650368] </p>
[Sun Dec 07 00:26:55.330088 2014] [:error] [pid 18608:tid 140692826650368] <hr>
[Sun Dec 07 00:26:55.330093 2014] [:error] [pid 18608:tid 140692826650368] <address>
[Sun Dec 07 00:26:55.330098 2014] [:error] [pid 18608:tid 140692826650368] </body></html>
[Sun Dec 07 00:26:55.330103 2014] [:error] [pid 18608:tid 140692826650368]
[Sun Dec 07 00:26:55.330295 2014] [:error] [pid 18608:tid 140692826650368] Object PUT failed: http://
[Sun Dec 07 00:26:55.330306 2014] [:error] [pid 18608:tid 140692826650368] <html><he
[Sun Dec 07 00:26:55.330312 2014] [:error] [pid 18608:tid 140692826650368] Traceback (most recent call last):
[Sun Dec 07 00:26:55.330317 2014] [:error] [pid 18608:tid 140692826650368] File "/home/
[Sun Dec 07 00:26:55.330322 2014] [:error] [pid 18608:tid 140692826650368] rv = func(self.url, self.token, *args, **kwargs)
[Sun Dec 07 00:26:55.330327 2014] [:error] [pid 18608:tid 140692826650368] File "/home/
[Sun Dec 07 00:26:55.330332 2014] [:error] [pid 18608:tid 140692826650368] http_response_
[Sun Dec 07 00:26:55.330338 2014] [:error] [pid 18608:tid 140692826650368] ClientException: Object PUT failed: http://
[Sun Dec 07 00:26:55.330343 2014] [:error] [pid 18608:tid 140692826650368] <html><he
[Sun Dec 07 00:26:55.330503 2014] [:error] [pid 18608:tid 140692826650368] Recoverable error: Object PUT failed: http://
[Sun Dec 07 00:26:55.330525 2014] [:error] [pid 18608:tid 140692826650368] <html><he
cli test log:
curl -i http://
HTTP/1.1 411 Length Required
Date: Sat, 06 Dec 2014 16:41:14 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Trans-Id: tx0bff2b699baa4
Content-Length: 30
Connection: close
Content-Type: text/plain
Missing Content-Length header.
Horizon Code:
openstack_
def swift_upload_
headers = {}
size = 0
if object_file:
size = object_file.size
summary: |
- fail to upload object if swift proxy-server is in apache 2.4 + fail to upload object if swift proxy-server is deployed in apache 2.4 |
description: | updated |
description: | updated |
Changed in horizon: | |
assignee: | nobody → LIU Yulong (dragon889) |
no longer affects: | python-swiftclient |
Changed in horizon: | |
status: | In Progress → Fix Released |
Fix proposed to branch: master /review. openstack. org/140376
Review: https:/