]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_rest_user.cc
update sources to v12.1.1
[ceph.git] / ceph / src / rgw / rgw_rest_user.cc
index 704ab241ddc6e6025d98a31836db4b2262b6322f..711fd3a0c1dca6c0d593d2b73ec1e1e437a30844 100644 (file)
@@ -693,6 +693,11 @@ void RGWOp_Quota_Info::execute()
   if (http_ret < 0)
     return;
 
+  if (!op_state.has_existing_user()) {
+    http_ret = -ERR_NO_SUCH_USER;
+    return;
+  }
+
   RGWUserInfo info;
   string err_msg;
   http_ret = user.info(info, &err_msg);
@@ -825,6 +830,11 @@ void RGWOp_Quota_Set::execute()
     return;
   }
 
+  if (!op_state.has_existing_user()) {
+    http_ret = -ERR_NO_SUCH_USER;
+    return;
+  }
+
 #define QUOTA_INPUT_MAX_LEN 1024
   if (set_all) {
     UserQuotas quotas;