mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 14:15:49 +03:00
[GH-ISSUE #1116] API copy Object should return an object resource on success. #165
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#165
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 @can-ne on GitHub (Apr 3, 2023).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1116
Hi!
First of all, thank you for developing this. It's an invaluable tool for local development 👏
Problem
I found that the copyTo and rewriteTo API is using the same rewriteObject function.
The rewriteTo API is OK but copyTo API response the same make client library didn't work.
Can you update the rewriteObject function to return an object resource if request to copyTo API.
github.com/fsouza/fake-gcs-server@e610de42cc/fakestorage/server.go (L257-L258)You can check the docs of GCS for more information:
Proposed solution
Check the path if it is copyTo request return an object resource.
Thank you!