mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
[GH-ISSUE #1282] Delete object doesn't check conditions #185
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yvrhdn on GitHub (Aug 7, 2023).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1282
Hi, thanks for this project, it's been really helpful for us!
I noticed that conditions are not checked when you delete an object. When we create or update objects conditions work as expected.
I'm sending a request with an invalid version
123:This request should fail but it succeeds with a 200 and deletes the object.
Digging through the code it seems
storageFS.DeleteObjectdoes not pass in conditions:github.com/fsouza/fake-gcs-server@4f6952135e/internal/backend/fs.go (L379-L391)Would the solution be as simple as passing in the
Conditionsand checking them like you do inCreateObject?github.com/fsouza/fake-gcs-server@4f6952135e/internal/backend/fs.go (L199)@noamshvacher commented on GitHub (Jun 24, 2024):
@fsouza Hi, are there any updates on that?