rgw tries to fetch the anonymous user although it does not exist.
Fixes: https://tracker.ceph.com/issues/44772
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
(cherry picked from commit
a221274ffce356d776010706deb1005ef1d68ee5)
map<string, bufferlist> * const pattrs,
optional_yield y)
{
+ if(user.id == RGW_USER_ANON_ID) {
+ ldout(svc.meta_be->ctx(), 20) << "RGWSI_User_RADOS::read_user_info(): anonymous user" << dendl;
+ return -ENOENT;
+ }
bufferlist bl;
RGWUID user_id;
int ret;
buckets->clear();
-
+ if (user.id == RGW_USER_ANON_ID) {
+ ldout(cct, 20) << "RGWSI_User_RADOS::list_buckets(): anonymous user" << dendl;
+ *is_truncated = false;
+ return 0;
+ }
rgw_raw_obj obj = get_buckets_obj(user);
bool truncated = false;