[GH-ISSUE #2124] Copy unexpectedly creates new buckets when the target doesn't exist #253

Closed
opened 2026-03-03 12:09:26 +03:00 by kerem · 1 comment
Owner

Originally created by @romainmenke on GitHub (Jan 29, 2026).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/2124

Follow the general instructions to start fake-gcs-server with some default data:

https://github.com/fsouza/fake-gcs-server?tab=readme-ov-file#preload-data


Check: http://0.0.0.0:4443/storage/v1/b

This will only list the sample-bucket


Run:

curl \
  -X POST --insecure \
  "http://0.0.0.0:4443/storage/v1/b/sample-bucket/o/some_file.txt/copyTo/b/does-not-exist/o/foo"

Check: http://0.0.0.0:4443/storage/v1/b

This will list the sample-bucket and also does-not-exist


I would expect this copy operation to be rejected as the bucket doesn't exist at first.

Originally created by @romainmenke on GitHub (Jan 29, 2026). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/2124 Follow the general instructions to start `fake-gcs-server` with some default data: https://github.com/fsouza/fake-gcs-server?tab=readme-ov-file#preload-data ----- Check: `http://0.0.0.0:4443/storage/v1/b` This will only list the `sample-bucket` ---- Run: ``` curl \ -X POST --insecure \ "http://0.0.0.0:4443/storage/v1/b/sample-bucket/o/some_file.txt/copyTo/b/does-not-exist/o/foo" ``` ---- Check: `http://0.0.0.0:4443/storage/v1/b` This will list the `sample-bucket` and also `does-not-exist` ---- I would expect this copy operation to be rejected as the bucket doesn't exist at first.
kerem 2026-03-03 12:09:26 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@romainmenke commented on GitHub (Jan 31, 2026):

Thank you @fsouza 🙇

<!-- gh-comment-id:3827868809 --> @romainmenke commented on GitHub (Jan 31, 2026): Thank you @fsouza 🙇
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#253
No description provided.