From: Seena Fallah Date: Mon, 19 Feb 2024 17:17:52 +0000 (+0100) Subject: rgw: fix root element for GetPublicAccessBlock X-Git-Tag: testing/56408~9^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0b905fb09369b5651abd232870c434f82f29a631;p=ceph-ci.git rgw: fix root element for GetPublicAccessBlock From the AWS doc (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetPublicAccessBlock.html) it needs to be PublicAccessBlockConfiguration. Fixes: https://tracker.ceph.com/issues/64492 Signed-off-by: Seena Fallah (cherry picked from commit db74c10e008caeb7092eb4c1268cbd6f044afa19) --- diff --git a/src/rgw/rgw_public_access.cc b/src/rgw/rgw_public_access.cc index 6298bb306d8..02af4b99836 100644 --- a/src/rgw/rgw_public_access.cc +++ b/src/rgw/rgw_public_access.cc @@ -9,7 +9,7 @@ void PublicAccessBlockConfiguration::decode_xml(XMLObj *obj) { } void PublicAccessBlockConfiguration::dump_xml(Formatter *f) const { - Formatter::ObjectSection os(*f, "BlockPublicAccessBlockConfiguration"); + Formatter::ObjectSection os(*f, "PublicAccessBlockConfiguration"); // Note: AWS spec mentions the values to be ALL CAPs, but clients seem to // require all small letters, and S3 itself doesn't seem to follow the API // spec here