* [PATCH] rgw: set xmlns on ListBucketResult element
@ 2011-09-29 7:35 Henry C Chang
0 siblings, 0 replies; only message in thread
From: Henry C Chang @ 2011-09-29 7:35 UTC (permalink / raw)
To: ceph-devel; +Cc: Henry C Chang
Certain S3 clients (e.g., s3fs) require the xmlns to parse the
results correctly.
Signed-off-by: Henry C Chang <henry.cy.chang@gmail.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-29 7:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-29 7:35 [PATCH] rgw: set xmlns on ListBucketResult element Henry C Chang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.