From: Chang Liu Date: Mon, 24 Dec 2018 09:09:20 +0000 (+0800) Subject: rgw: returns LimitExceeded when user creates too many ACLs X-Git-Tag: v15.1.0~2843^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=747248fbbe9d5f08a4c46b07ae03891d4e170497;p=ceph-ci.git rgw: returns LimitExceeded when user creates too many ACLs Fixes: http://tracker.ceph.com/issues/26835 Signed-off-by: Chang Liu --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index e93a671bc40..548c87b8ace 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -4878,7 +4878,7 @@ void RGWPutACLs::execute() if (grants_num > max_num) { ldpp_dout(this, 4) << "An acl can have up to " << max_num << " grants, request acl grants num: " << grants_num << dendl; - op_ret = -ERR_MALFORMED_ACL_ERROR; + op_ret = -ERR_LIMIT_EXCEEDED; s->err.message = "The request is rejected, because the acl grants number you requested is larger than the maximum " + std::to_string(max_num) + " grants allowed in an acl.";