diff options
author | Simon Jürgensmeyer <simon.juergensmeyer@hetzner-cloud.de> | 2025-01-15 09:08:38 +0100 |
---|---|---|
committer | Simon Jürgensmeyer <simon.juergensmeyer@hetzner-cloud.de> | 2025-01-15 09:23:55 +0100 |
commit | 466930b473292978b30a60e410dc755140ecb843 (patch) | |
tree | 24b1dbd159c4f3a819a4d3db7213280094627c51 /debian/libcephfs-proxy2.install | |
parent | Merge pull request #61072 from pecastro/doc_and_test_fixes (diff) | |
download | ceph-466930b473292978b30a60e410dc755140ecb843.tar.xz ceph-466930b473292978b30a60e410dc755140ecb843.zip |
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 <simon.juergensmeyer@hetzner-cloud.de>
Diffstat (limited to 'debian/libcephfs-proxy2.install')
0 files changed, 0 insertions, 0 deletions