Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.

test_s3: a conditional delete that finds no object is refused - #764

Open
mmgaggle wants to merge 1 commit into
ceph:masterfrom
mmgaggle:wip-rgw-conditional-delete-404
Open

mmgaggle wants to merge 1 commit into
ceph:masterfrom
mmgaggle:wip-rgw-conditional-delete-404

Conversation

@mmgaggle

Copy link
Copy Markdown
Member

test_delete_object_if_match, test_delete_object_current_if_match and test_delete_object_version_if_match expect a DeleteObject with If-Match that finds no object to succeed with 204. That is the answer of the directory-bucket conditions x-amz-if-match-size and x-amz-if-match-last-modified-time, whose tests keep it. For If-Match, S3 answers 404 when there is no object, and when a concurrent delete removed it first (S3 User Guide, "How to perform conditional deletes").

This expects 404 in those cases. It goes with ceph/ceph#72115 (https://tracker.ceph.com/issues/80922), and should merge together with it: until then the three tests fail on rgw main. With ceph/ceph#72115, all 12 conditional-delete tests pass on a vstart cluster.

test_delete_object_if_match, test_delete_object_current_if_match and
test_delete_object_version_if_match expect a DeleteObject with If-Match
that finds no object to succeed with 204. That is the answer of the
directory-bucket conditions x-amz-if-match-size and
x-amz-if-match-last-modified-time, whose tests keep it. For If-Match, S3
answers 404 when there is no object, and when a concurrent delete
removed it first (S3 User Guide, "How to perform conditional deletes").

Expect 404 in those cases. This goes with the rgw change for
https://tracker.ceph.com/issues/80922.

Assisted-by: Claude:claude-opus-5-5
@mmgaggle
mmgaggle marked this pull request as ready for review September 27, 2026 09:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant