]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/s3: add conditional json output for s3:ListBucket 47632/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 16 Aug 2022 12:56:54 +0000 (08:56 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 16 Aug 2022 19:05:02 +0000 (15:05 -0400)
commit12a9833fd1b6e37969a66ec8f9a5bf891cff33aa
tree7db84cda21356884ab34ffc65203fa95f7359cd0
parent7ad538611094117ef5b5c6d4a71f0414d11c5389
rgw/s3: add conditional json output for s3:ListBucket

Adapt the XML ListBucket response to contain well-formed JSON,
matching the implied schema of awscli:

$ aws --endpoint-url http://localhost:8000 s3api list-objects --bucket testbucket

suggested by Casey in review.

Fixes: https://tracker.ceph.com/issues/53455
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_rest_s3.cc