From: Soumya Koduri Date: Mon, 3 Jan 2022 12:29:17 +0000 (+0530) Subject: rgw/dbstore: GetUser should return ENOENT if no user found X-Git-Tag: v17.1.0~47^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=998f66737110b260791036f8d7521d0ffd40d0fc;p=ceph.git rgw/dbstore: GetUser should return ENOENT if no user found Signed-off-by: Soumya Koduri --- diff --git a/src/rgw/store/dbstore/common/dbstore.cc b/src/rgw/store/dbstore/common/dbstore.cc index 719ec62c074..a3d82f48559 100644 --- a/src/rgw/store/dbstore/common/dbstore.cc +++ b/src/rgw/store/dbstore/common/dbstore.cc @@ -279,6 +279,12 @@ int DB::get_user(const DoutPrefixProvider *dpp, if (ret) goto out; + /* Verify if its a valid user */ + if (params.op.user.uinfo.access_keys.empty()) { + ldpp_dout(dpp, 0)<<"In GetUser - No user with query(" <