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

Signed-off-by: Henry C Chang <[email protected]>
---
 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to