Actions
Fix #14091
openrgw: support json format for admin policy API
% Done:
0%
Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
when use admin policy API with format=json parameter,
$ curl -s -X GET http://ceph1:9090/admin/bucket?format=json&policy&bucket=m8x | xmllint --format -
the server returns strings like following:
"<AccessControlPolicy xmlns=\"http:\/\/s3.amazonaws.com\/doc\/2006-03-01\/\"><Owner><ID>lucy<\/ID><DisplayName>lucy<\/DisplayName><\/Owner><AccessControlList><Grant><Grantee xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:type=\"CanonicalUser\"><ID>lucy<\/ID><DisplayName>lucy<\/DisplayName><\/Grantee><Permission>FULL_CONTROL<\/Permission><\/Grant><\/AccessControlList><\/AccessControlPolicy>"
it should correct content of json format.
Updated by Dunrong Huang over 8 years ago
the fix is:
https://github.com/ceph/ceph/pull/6951
Actions