From 478629bd2f3f32afbe6e93eaebb8a8fa01af356f Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 7 Jan 2015 13:56:14 -0800 Subject: [PATCH] rgw: index swift keys appropriately Fixes: #10471 Backport: firefly, giant We need to index the swift keys by the full uid:subuser when decoding the json representation, to keep it in line with how we store it when creating it through other mechanism. Reported-by: hemant burman Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_json_enc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc index b70b613f49a99..cd731b78a5920 100644 --- a/src/rgw/rgw_json_enc.cc +++ b/src/rgw/rgw_json_enc.cc @@ -431,7 +431,7 @@ static void decode_swift_keys(map& m, JSONObj *o) { RGWAccessKey k; k.decode_json(o, true); - m[k.subuser] = k; + m[k.id] = k; } static void decode_subusers(map& m, JSONObj *o) -- 2.39.5