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 <hemant.burman@gmail.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
{
RGWAccessKey k;
k.decode_json(o, true);
- m[k.subuser] = k;
+ m[k.id] = k;
}
static void decode_subusers(map<string, RGWSubUser>& m, JSONObj *o)