From: Yehuda Sadeh Date: Wed, 7 Jan 2015 21:56:14 +0000 (-0800) Subject: rgw: index swift keys appropriately X-Git-Tag: v0.91~1^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=478629bd2f3f32afbe6e93eaebb8a8fa01af356f;p=ceph.git 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 --- diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc index b70b613f49a9..cd731b78a592 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)