Project

General

Profile

Actions

Fix #14091

open

rgw: support json format for admin policy API

Added by Dunrong Huang over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
% 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.

Actions

Also available in: Atom PDF