[PATCH] rgw: set xmlns on ListBucketResult element

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Certain S3 clients (e.g., s3fs) require the xmlns to parse the
results correctly.

Signed-off-by: Henry C Chang <henry.cy.chang@xxxxxxxxx>
---
 src/rgw/rgw_rest_s3.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc
index 38dcff1..666e831 100644
--- a/src/rgw/rgw_rest_s3.cc
+++ b/src/rgw/rgw_rest_s3.cc
@@ -125,7 +125,8 @@ void RGWListBucket_REST_S3::send_response()
   if (ret < 0)
     return;
  
-  s->formatter->open_object_section("ListBucketResult");
+  s->formatter->open_object_section_in_ns("ListBucketResult",
+                  "http://s3.amazonaws.com/doc/2006-03-01/";);
   s->formatter->dump_format("Name", s->bucket_name);
   if (!prefix.empty())
     s->formatter->dump_format("Prefix", prefix.c_str());
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux