Bug #11285
closedRGW Swift API: showing stats in account listing does not work even when the "stats" parameter is provided
0%
Description
RGW via civetweb frontend:
$ curl -i http://localhost:8000/swift/v1/?format=json\&stats=true -X GET -H "X-Auth-Token: $token"
HTTP/1.1 200 OK
X-Timestamp: 1427809455.18849
X-Account-Container-Count: 0
X-Account-Object-Count: 0
X-Account-Bytes-Used: 0
X-Account-Bytes-Used-Actual: 0
Content-type: application/json; charset=utf-8
Content-Length: 189
Date: Tue, 31 Mar 2015 13:44:15 GMT[{"name":"aaaa10","count":0,"bytes":0},{"name":"cont","count":8,"bytes":0},{"name":"cont10","count":0,"bytes":0},{"name":"cont12","count":0,"bytes":0},{"name":"cont15","count":2,"bytes":4}]
The issue occurs probably because send_response_begin() in RGWListBuckets::execute() is being called before collecting the statistics.
Updated by Radoslaw Zarzynski about 9 years ago
- Status changed from New to In Progress
- Assignee set to Radoslaw Zarzynski
Updated by Radoslaw Zarzynski about 9 years ago
- Status changed from In Progress to Fix Under Review
Pull request: https://github.com/ceph/ceph/pull/4241.
Updated by Casey Bodley about 4 years ago
- Status changed from Fix Under Review to Resolved