Project

General

Profile

Bug #10682

RGW swift API: specifying end_marker query parameter in url is not recognized by rgw in GET request for container/object.

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

Status:
Need Review
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
01/29/2015
Due date:
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

Steps to reproduce:

1. swift post container1
2. swift post container2
3. swift post container3
4. swift post container4

5. curl -i https://10.20.20.15:80/swift/v1?end_marker=container3 -X GET -H "x-auth-token: 6fdc42c59e6947b2bf32aa702d433e8a"

HTTP/1.1 200 OK
Date: Thu, 29 Jan 2015 07:51:35 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: Accept-Encoding
Content-Type: application/octet-stream
Connection: close
Transfer-Encoding: chunked

container1
container2
container3
container4

same query if run in swift returns:
5. curl -i http://10.0.2.15:8080/v1/AUTH_b2419ea9588d49ddbd8c006b5eb199ff?end_marker=container3 -X GET -H "X-Auth-Token: 016649e57fdf4c26998d5a68f5ef214d"

HTTP/1.1 200 OK
Content-Length: 12
X-Account-Object-Count: 4
X-Account-Storage-Policy-Policy-0-Bytes-Used: 1048582
X-Account-Storage-Policy-Policy-0-Container-Count: 5
X-Timestamp: 1419480678.41198
X-Account-Storage-Policy-Policy-0-Object-Count: 4
X-Account-Meta-Temp-Url-Key: secret
X-Account-Bytes-Used: 1048582
X-Account-Container-Count: 5
Content-Type: text/plain; charset=utf-8
Accept-Ranges: bytes
x-account-project-domain-id: default
X-Trans-Id: tx2b1f0e0b748a47678f53b-0054c8b037
Date: Wed, 28 Jan 2015 09:47:35 GMT

container1
container2

same issue is observed in GET request for object also.

Associated revisions

Revision 50cf7432 (diff)
Added by Radoslaw Zarzynski about 4 years ago

rgw: add support for end_marker for GET on Swift container.

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

Revision 58adddaa (diff)
Added by Radoslaw Zarzynski over 3 years ago

rgw: add support for "end_marker" on listing Swift account.

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

History

#1 Updated by Radoslaw Zarzynski about 4 years ago

  • Status changed from New to In Progress

I'm working on that.

#2 Updated by Radoslaw Zarzynski about 4 years ago

  • Status changed from In Progress to Need Review

Also available in: Atom PDF