From 02347fc27bc05cf33d22c2f0bf8882010a9e26c4 Mon Sep 17 00:00:00 2001 From: Ali Masarwa Date: Mon, 20 Mar 2023 18:42:30 +0200 Subject: [PATCH] Solving the issue of not populating etag in Multipart update result Signed-off-by: Ali Masarwa (cherry picked from commit 2b13cd90951891bf9767f168653a896d94ca056c) --- src/rgw/rgw_op.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index e2d74d9cedd7..63c36db00e9b 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -6712,6 +6712,9 @@ void RGWCompleteMultipart::complete() ldpp_dout(this, 0) << "WARNING: failed to unlock " << serializer->oid << dendl; } } + + etag = s->object->get_attrs()[RGW_ATTR_ETAG].to_str(); + send_response(); } -- 2.47.3