From: Yehuda Sadeh Date: Wed, 7 Jan 2015 21:56:14 +0000 (-0800) Subject: rgw: index swift keys appropriately X-Git-Tag: v0.80.9~22^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=71d119f2952716aa1f75817e1daaf5fb67ecde94;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 (cherry picked from commit 478629bd2f3f32afbe6e93eaebb8a8fa01af356f) --- diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc index a1986782d11..c0f8311a5eb 100644 --- a/src/rgw/rgw_json_enc.cc +++ b/src/rgw/rgw_json_enc.cc @@ -429,7 +429,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)