]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: returns LimitExceeded when user creates too many ACLs
authorChang Liu <liuchang0812@gmail.com>
Mon, 24 Dec 2018 09:09:20 +0000 (17:09 +0800)
committerChang Liu <liuchang0812@gmail.com>
Mon, 24 Dec 2018 09:09:20 +0000 (17:09 +0800)
Fixes: http://tracker.ceph.com/issues/26835
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
src/rgw/rgw_op.cc

index e93a671bc4059ec3aa1bbe975f3f2a03eed48548..548c87b8ace21c670371fe4220e9b9faaee8057c 100644 (file)
@@ -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.";