From 747248fbbe9d5f08a4c46b07ae03891d4e170497 Mon Sep 17 00:00:00 2001 From: Chang Liu Date: Mon, 24 Dec 2018 17:09:20 +0800 Subject: [PATCH] rgw: returns LimitExceeded when user creates too many ACLs Fixes: http://tracker.ceph.com/issues/26835 Signed-off-by: Chang Liu --- src/rgw/rgw_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."; -- 2.47.3