mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[GH-ISSUE #1871] Storage Class returned in response is empty string when updating object metadata #226
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#226
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 @DanoBuck on GitHub (Jan 8, 2025).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1871
Hey there,
While testing out the latest released container: version 1.51 - sha256:600fad414f624942a7250d1917c48d6a63cb7212ff85d068cb470a1d274ae6ca, it was observed that when using the google-cloud-storage-2.46.0.jar to make requests to the container we started experiencing errors as seen below when parsing the response back from the container:
The request used to generate the above error was around updating the metadata of an object.
Upon further inspection, it was observed that the new container was returning the following storage class attribute within the JSON response
"storageClass": "",I believe this change may be the cause.
Would anyone be able to check this out for me please?
If any more details are needed, please let me know.
Thank you.
Replication steps using curl
docker ps -a # Take 0.0.0.0:62237->4443/tcpexport GCS_PORT=62237{ "name": "test-bucket-env", "location": "US-EAST1" }curl -v "localhost:$GCS_PORT/storage/v1/b?project=recreate&projection=full" -H "Content-Type: application/json" -X POSTcurl -v "localhost:$GCS_PORT/upload/storage/v1/b/test-bucket-env/o?ifGenerationMatch=0&name=dev/repus/collection/entry-id/0/1&uploadType=resumable" -X POSTcurl -v localhost:$GCS_PORT/upload/storage/v1/b/test-bucket-env/o?uploadType=resumable&name=dev%2Frepus%2Fcollection%2Fentry-id%2F0%2F1&upload_id=7a9d76ad6c0219f6f8dcadbca889f9d4curl -v "localhost:$GCS_PORT/storage/v1/b/test-bucket-env/o/dev%2Frepus%2Fcollection%2Fentry-id%2F0%2F1?projection=full"1736335690830320{ "metadata": { "tag-1": "true", "tag-2": "2024-01-29 11:53:04", "tag-3": "2024-01-17 11:53:12" } }curl -v "localhost:62237/storage/v1/b/test-bucket-env/o/dev%2Frepus%2Fcollection%2Fentry-id%2F0%2F1?ifGenerationMatch=1736335821147726&projection=full" -X POST --data-binary @metadata.jsonDiff between version 1.50 and 1.51
@olegbonar commented on GitHub (Jan 8, 2025):
We are facing the same problem.
@fsouza commented on GitHub (Jan 10, 2025):
Thanks for reporting! This should be fixed in 1.52.1 now.