]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: public access: drop unused function
authorAbhishek Lekshmanan <abhishek@suse.com>
Tue, 3 Dec 2019 17:58:29 +0000 (18:58 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 3 Feb 2020 16:53:34 +0000 (17:53 +0100)
Also cleanup the comment to mention why we've deviated from the spec here

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_public_access.cc

index 3197b75c522bc38a4c0edd979ed725d9444a2e48..2e1315a26d42d819868cc30f234f059f5e427582 100644 (file)
@@ -10,11 +10,9 @@ void PublicAccessBlockConfiguration::decode_xml(XMLObj *obj) {
 
 void PublicAccessBlockConfiguration::dump_xml(Formatter *f) const {
   Formatter::ObjectSection os(*f, "BlockPublicAccessBlockConfiguration");
-  // AWS spec mentions the values to be ALL CAPs, but clients will not
-  // understand this or a mixed case like it is supposed to, hence the need to
-  // manually encode here
-  auto bool_val = [](bool b) -> auto { return b ? "true": "false"; };
-
+  // 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
   f->dump_bool("BlockPublicAcls", BlockPublicAcls);
   f->dump_bool("IgnorePublicAcls", IgnorePublicAcls);
   f->dump_bool("BlockPublicPolicy", BlockPublicPolicy);