Bug #15455
closedrgw rest admin: AccessDenied is returned when we try to get a user info without a uid param
0%
Description
When a request is made (with proper authentication) and uid param is not specified, we return 403: AccessDenied, whereas the actual error is a bad request as the request did not contain the mandatory uid param
request: GET http://127.0.0.1:8001/admin/user
response:
{
"Code": "AccessDenied",
"RequestId": "tx000000000000000000002-00570b9f20-1488b-us-east1",
"HostId": "1488b-us-east1-us"
}
// GET http://127.0.0.1:8001/admin/user
// HTTP/1.1 403 Forbidden
// x-amz-request-id: tx000000000000000000002-00570b9f20-1488b-us-east1
// Content-Length: 116
// Accept-Ranges: bytes
// Content-Type: application/json
// Date: Mon, 11 Apr 2016 13:02:13 GMT
// Connection: Keep-Alive
// Request duration: 309.252499s
Updated by Abhishek Lekshmanan about 8 years ago
- Status changed from New to In Progress
- Assignee set to Abhishek Lekshmanan
Master PR: https://github.com/ceph/ceph/pull/8533
Updated by Abhishek Lekshmanan about 8 years ago
- Status changed from In Progress to Fix Under Review
Updated by Abhishek Lekshmanan almost 8 years ago
- Status changed from Fix Under Review to Resolved