]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix root element for GetPublicAccessBlock
authorSeena Fallah <seenafallah@gmail.com>
Mon, 19 Feb 2024 17:17:52 +0000 (18:17 +0100)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Mon, 27 Jan 2025 18:59:38 +0000 (01:59 +0700)
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 <seenafallah@gmail.com>
(cherry picked from commit db74c10e008caeb7092eb4c1268cbd6f044afa19)

src/rgw/rgw_public_access.cc

index 6298bb306d87feae18821ab806572844406d2711..02af4b998363ff4de057f7f5be6bdc5583099d79 100644 (file)
@@ -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