From: Seena Fallah Date: Mon, 19 Feb 2024 17:17:52 +0000 (+0100) Subject: rgw: fix root element for GetPublicAccessBlock X-Git-Tag: v19.1.0~236^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=913a6d0df25b78f06c6f39a0476273dc5cb9cd16;p=ceph.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 d388a59a7bb9..6d86ad3516e5 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