Project

General

Profile

Bug #14090

rgw: the response XML format of admin policy API is error

Added by Dunrong Huang almost 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

  • reproduce step:

$ curl -s -X GET http://ceph1:9090/admin/bucket?format=xml&policy&bucket=m8x | xmllint --format -

  • expected result
    reponse content with XML format
  • actual result
    reponse with error format like following:
    <?xml version="1.0" encoding="UTF-8"?>
    <policy>&lt;AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/"&gt;&lt;Owner&gt;&lt;ID&gt;testuser&lt;/ID&gt;&lt;DisplayName&gt;testuser&lt;/DisplayName&gt;&lt;/Owner&gt;&lt;AccessControlList&gt;&lt;Grant&gt;&lt;Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"&gt;&lt;ID&gt;testuser&lt;/ID&gt;&lt;DisplayName&gt;testuser&lt;/DisplayName&gt;&lt;/Grantee&gt;&lt;Permission&gt;FULL_CONTROL&lt;/Permission&gt;&lt;/Grant&gt;&lt;/AccessControlList&gt;&lt;/AccessControlPolicy&gt;</policy>
    

Associated revisions

Revision a1333f54 (diff)
Added by Dunrong Huang over 6 years ago

rgw: support json format for admin policy API

Fixes: #14090, #14091

- before this patch:
$ curl -s -X GET http://radosrgw:9090/admin/bucket?format=json&policy&bucket=m8x | xmllint --format -

got XML response with error format

- after this patch:
got correct response with json format

Signed-off-by: Dunrong Huang <>

History

#2 Updated by Kefu Chai almost 7 years ago

  • Status changed from New to Pending Backport

#3 Updated by Kefu Chai almost 7 years ago

  • Status changed from Pending Backport to Fix Under Review

#4 Updated by Yehuda Sadeh over 6 years ago

  • Status changed from Fix Under Review to Pending Backport

#5 Updated by Nathan Cutler over 6 years ago

  • Backport set to jewel

#7 Updated by Loïc Dachary over 6 years ago

  • Status changed from Pending Backport to Resolved
  • Backport deleted (jewel)

Also available in: Atom PDF