mirror of
https://github.com/ceph/ceph
synced 2025-03-06 16:28:28 +00:00
Merge pull request #10187 from dreamhost/wip-16618
rgw: fix multi-delete query param parsing. Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
commit
f01f2190b5
@ -1548,7 +1548,7 @@ int RGWHandler_REST::read_permissions(RGWOp* op_obj)
|
||||
case OP_POST:
|
||||
case OP_COPY:
|
||||
/* is it a 'multi-object delete' request? */
|
||||
if (s->info.request_params == "delete") {
|
||||
if (s->info.args.exists("delete")) {
|
||||
only_bucket = true;
|
||||
break;
|
||||
}
|
||||
|
@ -2866,7 +2866,7 @@ RGWOp *RGWHandler_REST_Bucket_S3::op_delete()
|
||||
|
||||
RGWOp *RGWHandler_REST_Bucket_S3::op_post()
|
||||
{
|
||||
if ( s->info.request_params == "delete" ) {
|
||||
if (s->info.args.exists("delete")) {
|
||||
return new RGWDeleteMultiObj_ObjStore_S3;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user