rgw: we should probably return InvalidArgument when XML_parser fails of RGWPutACLs opReviewed-by: Orit Wasserman <owasserm@redhat.com>

rgw: we should probably return InvalidArgument when XML_parser fails of RGWPutACLs op
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
Orit Wasserman 2016-05-26 12:53:05 +02:00
commit 22bb84684e

View File

@ -3424,7 +3424,7 @@ void RGWPutACLs::execute()
}
if (!parser.parse(data, len, 1)) {
op_ret = -EACCES;
op_ret = -EINVAL;
return;
}
policy = static_cast<RGWAccessControlPolicy_S3 *>(parser.find_first("AccessControlPolicy"));