Commit 466930b
committed
rgw: S3 Delete Bucket Policy should return 204 on success
Currently, RGW returns a 200 on a successful DELETE on a bucket policy but
the S3 API expects a 204:
https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketPolicy.html
The sample response in the example above is a 204.
This patch checks the op_ret in `RGWDeleteBucketPolicy::send_response()`
and on a success we turn it to a 204 (or STATUS_NO_CONTENT).
Fixes: https://tracker.ceph.com/issues/69539
Signed-off-by: Simon Jürgensmeyer <[email protected]>1 parent f992060 commit 466930b
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8582 | 8582 | | |
8583 | 8583 | | |
8584 | 8584 | | |
| 8585 | + | |
| 8586 | + | |
| 8587 | + | |
| 8588 | + | |
8585 | 8589 | | |
8586 | 8590 | | |
8587 | 8591 | | |
| |||
9257 | 9261 | | |
9258 | 9262 | | |
9259 | 9263 | | |
9260 | | - | |
| |||
0 commit comments