Project

General

Profile

Actions

Bug #15810

closed

RGW Swift API: response for HEAD on object doesn't contain mandatory Content-Length header for zero-size object

Added by Valeriy Pastushenko almost 8 years ago. Updated almost 8 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

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

Description

$ curl -i ${publicURL}/cont/object -X GET -H "X-Auth-Token: $token" 
HTTP/1.1 200 OK
Date: Wed, 04 May 2016 08:05:37 GMT
Server: Apache
Accept-Ranges: bytes
X-Object-Meta-test: Test_metadata_content
Content-Length: 0
Last-Modified: Wed, 04 May 2016 08:04:20 GMT
etag: d41d8cd98f00b204e9800998ecf8427e

$ curl -i ${publicURL}/cont/object --head -H "X-Auth-Token: $token"                                                
HTTP/1.1 200 OK
Date: Wed, 04 May 2016 08:04:25 GMT
Server: Apache
Accept-Ranges: bytes
X-Object-Meta-test: Test_metadata_content
Last-Modified: Wed, 04 May 2016 08:04:20 GMT
etag: d41d8cd98f00b204e9800998ecf8427e

In Swift documentation this header not marked as optional.

Actions

Also available in: Atom PDF