Project

General

Profile

Feature #10938

RGW Swift API: response for GET/HEAD on container does not contain the X-Timestamp header

Added by Radoslaw Zarzynski almost 8 years ago. Updated over 7 years ago.

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

0%

Source:
other
Tags:
Backport:
hammer
Reviewed:
Affected Versions:
Pull request ID:

Description

RGW via civetweb: curl -X GET -H "X-Auth-Token: $token" -i http://localhost:8000/swift/v1/cont

HTTP/1.1 200 OK
Content-type: text/plain; charset=utf-8
Date: Tue, 24 Feb 2015 17:15:43 GMT

obj

Swift: curl -H "X-Auth-Token: $token" -X GET -i http://localhost:9090/v1/AUTH_test/cont

HTTP/1.1 200 OK
Content-Length: 9
X-Container-Object-Count: 2
Accept-Ranges: bytes
X-Timestamp: 1424789735.12920
X-Container-Bytes-Used: 0
Content-Type: text/plain; charset=utf-8
X-Trans-Id: tx746a1d9b80e34a4da6302-0054ecb312
Date: Tue, 24 Feb 2015 17:21:23 GMT

obj
obj2

The X-Timestamp header - in my opinion - is not mandatory according to the OpenStack Object Storage API v1. However, Swift sends it and preserving the compatibility would be nice.
See also: #8911, #10684.

Associated revisions

Revision b7e9bf6b (diff)
Added by Radoslaw Zarzynski almost 8 years ago

rgw: add support for X-Timestamp on Swift containers.

Fixes: #10938
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <>

Revision 48b19810 (diff)
Added by Radoslaw Zarzynski almost 8 years ago

rgw: add support for X-Timestamp on Swift containers.

Fixes: #10938
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <>
(cherry picked from commit b7e9bf6b98ee48d1977d907a9e5130c0ce073c54)

History

#1 Updated by Dmytro Yurchenko almost 8 years ago

  • Assignee set to Radoslaw Zarzynski

#3 Updated by Dmytro Yurchenko almost 8 years ago

  • Status changed from New to Fix Under Review

#4 Updated by Yehuda Sadeh almost 8 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to hammer

Merged fixes, commit:b7e9bf6b98ee48d1977d907a9e5130c0ce073c54, commit:e54fef9

#6 Updated by Loïc Dachary over 7 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF