Bug #12950
closedrgw: empty etag HTTP header is appended in some cases
0%
Description
It looks that in some circumstances (eg. putting en empty object through Swift API without chunked transfer encoding nor Content-Length specified) radosgw returns etag with an empty value.
$ curl -i "$publicURL/cont/obj" -X PUT -H "X-Auth-Token: $token"
HTTP/1.1 411 Length Required
etag:
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
X-Trans-Id: tx000000000000000000005-0055e98e9a-102d-default
Content-Length: 20
Accept-Ranges: bytes
Content-type: text/plain; charset=utf-8
Date: Fri, 04 Sep 2015 12:29:14 GMT
Swift in similar cases just skip the etag header:
$ curl -i "$publicURL/cont/obj" -X PUT -H "X-Auth-Token: $token"
HTTP/1.1 411 Length Required
Content-Length: 75
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx70bab9c54ffd4afb8aaeb-0055e98ebe
Date: Fri, 04 Sep 2015 12:29:50 GMT<html><h1>Length Required</h1><p>Content-Length header required.</p></html>
Updated by Radoslaw Zarzynski over 8 years ago
- Status changed from New to In Progress
- Assignee set to Radoslaw Zarzynski
Updated by Radoslaw Zarzynski over 8 years ago
- Status changed from In Progress to Fix Under Review
Pull request: https://github.com/ceph/ceph/pull/5819.
Updated by Casey Bodley about 4 years ago
- Status changed from Fix Under Review to Resolved