Skip to content

Commit 2d41646

Browse files
authored
Merge pull request ceph#61384 from sj14/sj/delete-policy-204
rgw: S3 Delete Bucket Policy should return 204 on success Reviewed-by: Casey Bodley <[email protected]>
2 parents 34882a4 + 466930b commit 2d41646

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rgw/rgw_op.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8582,6 +8582,10 @@ void RGWGetBucketPolicy::execute(optional_yield y)
85828582

85838583
void RGWDeleteBucketPolicy::send_response()
85848584
{
8585+
if (!op_ret) {
8586+
/* A successful Delete Bucket Policy should return a 204 on success */
8587+
op_ret = STATUS_NO_CONTENT;
8588+
}
85858589
if (op_ret) {
85868590
set_req_state_err(s, op_ret);
85878591
}
@@ -9257,4 +9261,3 @@ void rgw_slo_entry::decode_json(JSONObj *obj)
92579261
JSONDecoder::decode_json("etag", etag, obj);
92589262
JSONDecoder::decode_json("size_bytes", size_bytes, obj);
92599263
};
9260-

0 commit comments

Comments
 (0)