[GH-ISSUE #909] Support preconditions on copyTo requests #141

Open
opened 2026-03-03 12:08:40 +03:00 by kerem · 1 comment
Owner

Originally created by @roeap on GitHub (Sep 1, 2022).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/909

As I just started looking into GCS, I may completely have missed something, But after some testing and browsing the code, it seems to me precoditions are currently not supported for copy requests.

It would be great to have support for these, as we are using fake-gcs to test a solution that heavily relies on copy-if-not-exists functionality. I did see several discussions around using the memory backend, which is completely fine for us.

Originally created by @roeap on GitHub (Sep 1, 2022). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/909 As I just started looking into GCS, I may completely have missed something, But after some testing and browsing the code, it seems to me precoditions are currently not supported for copy requests. It would be great to have support for these, as we are using fake-gcs to test a solution that heavily relies on copy-if-not-exists functionality. I did see several discussions around using the memory backend, which is completely fine for us.
Author
Owner

@fsouza commented on GitHub (Sep 1, 2022):

Hi @roeap, thanks for opening the issue and thanks for confirming that using the memory backend is OK with you.

Right now, using the memory backend is the only way to have versioning. The filesystem backend doesn't really support generations. But you're right, I'm pretty sure we'd need to add support for conditions/generations in copyTo.

<!-- gh-comment-id:1234912586 --> @fsouza commented on GitHub (Sep 1, 2022): Hi @roeap, thanks for opening the issue and thanks for confirming that using the memory backend is OK with you. Right now, using the memory backend is the only way to have versioning. The filesystem backend doesn't really support generations. But you're right, I'm pretty sure we'd need to add support for conditions/generations in copyTo.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#141
No description provided.