Skip to content

Commit 8470acf

Browse files
authored
Merge pull request ceph#64569 from cbodley/wip-71607
rgw: DeleteObject supports sigv4 with Transfer-Encoding: chunked Reviewed-by: Robin H. Johnson <[email protected]> Reviewed-by: Casey Bodley <[email protected]>
2 parents 62bcf65 + b9a03d1 commit 8470acf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rgw/rgw_rest_s3.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3829,7 +3829,9 @@ int RGWDeleteObj_ObjStore_S3::get_params(optional_yield y)
38293829
bypass_governance_mode = boost::algorithm::iequals(bypass_gov_decoded, "true");
38303830
}
38313831

3832-
return 0;
3832+
// we're not reading any request body, so this should just match
3833+
// the sha256 hash of an empty buffer
3834+
return do_aws4_auth_completion();
38333835
}
38343836

38353837
void RGWDeleteObj_ObjStore_S3::send_response()
@@ -6535,6 +6537,7 @@ AWSGeneralAbstractor::get_auth_data_v4(const req_state* const s,
65356537
case RGW_OP_INIT_MULTIPART: // in case that Init Multipart uses CHUNK encoding
65366538
case RGW_OP_COMPLETE_MULTIPART:
65376539
case RGW_OP_SET_BUCKET_VERSIONING:
6540+
case RGW_OP_DELETE_OBJ:
65386541
case RGW_OP_DELETE_MULTI_OBJ:
65396542
case RGW_OP_ADMIN_SET_METADATA:
65406543
case RGW_OP_SYNC_DATALOG_NOTIFY:

0 commit comments

Comments
 (0)