mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[PR #187] [MERGED] rewriteObject: don't ignore metadata #417
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#417
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?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/187
Author: @pschultz
Created: 2/27/2020
Status: ✅ Merged
Merged: 2/28/2020
Merged by: @fsouza
Base:
master← Head:rewrite-with-metadata📝 Commits (1)
517fbadupload, rewrite: read metadata from request body📊 Changes
4 files changed (+47 additions, -15 deletions)
View changed files
📝
fakestorage/object.go(+19 -8)📝
fakestorage/object_test.go(+11 -2)📝
fakestorage/upload.go(+9 -4)📝
fakestorage/upload_test.go(+8 -1)📄 Description
Server.rewriteObject erroneously copies metadata from the source object, which isn't how GCS behaves. Metadata is provided in the request body, just like when creating objects.
Also, multipartUpload ignored user-defined metadata.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.