Project

General

Profile

Bug #10668

RGW swift API: Setting x-account-meta-temp-url-key is successful but this metadata is not returned by rgw in HEAD request.

Added by Ahmad Faheem about 9 years ago. Updated about 4 years ago.

Status:
Resolved
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

Setting x-account-meta-temp-url-key succeeds and temp url generated using this key works but response header of HEAD request on account does not contain x-account-meta-temp-url-key.

Steps to reproduce:
1. swift post -H "x-account-meta-temp-url-key: secret"
2. curl -i https://10.20.20.15:80/swift/v1/ -I -H "X-Auth-Token: 21dd3df5f2c54f50a841ae7260753598"

HTTP/1.1 204 No Content
Date: Wed, 28 Jan 2015 12:26:34 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Account-Container-Count: 1
X-Account-Object-Count: 5
X-Account-Bytes-Used: 2097154
X-Account-Bytes-Used-Actual: 2101248
Access-Control-Allow-Origin: *
Content-Type: application/octet-stream
Connection: close

account HEAD does not show x-account-meta-temp-url-key metadata but temp url generated works fine.
3. curl -i "https://10.20.20.15:80/swift/v1/container/file1?temp_url_sig=085e9b07fa067350b66003f6913798b1ba48b9a2&temp_url_expires=1422448176"

HTTP/1.1 200 OK
Date: Wed, 28 Jan 2015 12:29:15 GMT
Server: Apache/2.4.7 (Ubuntu)
Accept-Ranges: bytes
Last-Modified: Wed, 28 Jan 2015 12:14:54 GMT
etag: 49f68a5c8493ec2c0bf489821c21fc3b
Content-Length: 2
Access-Control-Allow-Origin: *
Content-Type: application/octet-stream
Connection: close

hi

So it seems some issue at rgw because ceph is storing this metadata but RGW is not returning it.

Associated revisions

Revision 80570e7b (diff)
Added by Radoslaw Zarzynski almost 9 years ago

rgw: print TempURL metadata in response for GET/HEAD on Swift account.

Fixes: #10668
Signed-off-by: Radoslaw Zarzynski <>

History

#1 Updated by Dmytro Yurchenko about 9 years ago

I think it is because any account custom metadata is not supported.
http://ceph.com/docs/master/radosgw/swift/

#2 Updated by Radoslaw Zarzynski about 9 years ago

I'm working on that.

#4 Updated by Casey Bodley about 4 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF