mirror of
https://github.com/ceph/ceph
synced 2025-01-11 13:41:02 +00:00
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:
commit
22bb84684e
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user