mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[GH-ISSUE #273] Patch call with new content-type does nothing #57
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#57
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 @ex-nerd on GitHub (Jun 18, 2020).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/273
As far as I can see in the fake-gcs-server code, contentType is only set when the object is created, and can't be updated.
I'm using the official python gcs library, basically as follows:
The content-type value returned from the API request (buried in google's
patch()method definition) is the original unchangedapplication/octet-stream, as is the content-type when trying to download the blob.Debugging into google's code, this is sending
{"contentType": "application/some-new-type"}along with the API request as the body content, which seems to be completely ignored byServer.patchObjectunmarshaling into itsmetadatastruct.@corytheboyd-smartsheet commented on GitHub (Oct 13, 2023):
FWIW I think I just ran into this same issue. Wrote the integration test for our feature that updates an object's content-type, and was confused about what I was doing wrong with what I though was a very simple implementation 😅