Project

General

Profile

Actions

Bug #10661

closed

RGW swift API: Response header of POST request for object does not contain content-length and x-trans-id headers

Added by Ahmad Faheem over 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Steps to reproduce:

1. swift post container
2. curl -i https://object.jiocloud.com:80/swift/v1/container/test -X PUT -H "X-Auth-Token: b0fc9e40be454205b290ea6768f2c1b2" -H "content-length: 0"
3. curl -i https://object.jiocloud.com:80/swift/v1/container/test -X POST -H "X-Auth-Token: b0fc9e40be454205b290ea6768f2c1b2"

HTTP/1.1 202 Accepted
Date: Wed, 28 Jan 2015 05:50:23 GMT
Server: Apache/2.4.7 (Ubuntu)
Content-Type: application/octet-stream
Connection: close
Transfer-Encoding: chunked

in swift the response header returned is:
curl -i http://10.0.2.15:8080/v1/AUTH_b2419ea9588d49ddbd8c006b5eb199ff/container/test -X POST -H "X-Auth-Token: b8d0bac45c7343ae84705ceab696809c"

HTTP/1.1 202 Accepted
Content-Length: 76
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txf097d3b0fdee4b3d96457-0054c7ebb1
Date: Tue, 27 Jan 2015 19:49:06 GMT

Actions

Also available in: Atom PDF