From 998f66737110b260791036f8d7521d0ffd40d0fc Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Mon, 3 Jan 2022 17:59:17 +0530 Subject: [PATCH] rgw/dbstore: GetUser should return ENOENT if no user found Signed-off-by: Soumya Koduri --- src/rgw/store/dbstore/common/dbstore.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rgw/store/dbstore/common/dbstore.cc b/src/rgw/store/dbstore/common/dbstore.cc index 719ec62c074d2..a3d82f48559ab 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(" <