[GH-ISSUE #2087] Bucket update should return updated bucket as json #250

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

Originally created by @cristianonicolai on GitHub (Dec 5, 2025).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/2087

According to the docs on https://docs.cloud.google.com/storage/docs/json_api/v1/buckets/update.
Im currently using a Java client and it seems to fail because name attribute is not returned from the server.

at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:902)
        at com.google.cloud.storage.BucketInfo$BuilderImpl.build(BucketInfo.java:2380)
        at com.google.cloud.storage.JsonConversions.bucketInfoDecode(JsonConversions.java:530)
        at com.google.cloud.storage.Conversions$SimpleCodec.decode(Conversions.java:149)
        at com.google.cloud.storage.StorageImpl.lambda$update$15(StorageImpl.java:537)
        at com.google.cloud.storage.Retrying.run(Retrying.java:66)
        at com.google.cloud.storage.StorageImpl.run(StorageImpl.java:1608)
        at com.google.cloud.storage.StorageImpl.update(StorageImpl.java:534)
        at com.google.cloud.storage.Bucket.update(Bucket.java:1016)

Reference code https://docs.cloud.google.com/storage/docs/samples/storage-enable-bucket-lifecycle-management#storage_enable_bucket_lifecycle_management-java

Originally created by @cristianonicolai on GitHub (Dec 5, 2025). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/2087 According to the docs on https://docs.cloud.google.com/storage/docs/json_api/v1/buckets/update. Im currently using a Java client and it seems to fail because _name_ attribute is not returned from the server. ``` at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:902) at com.google.cloud.storage.BucketInfo$BuilderImpl.build(BucketInfo.java:2380) at com.google.cloud.storage.JsonConversions.bucketInfoDecode(JsonConversions.java:530) at com.google.cloud.storage.Conversions$SimpleCodec.decode(Conversions.java:149) at com.google.cloud.storage.StorageImpl.lambda$update$15(StorageImpl.java:537) at com.google.cloud.storage.Retrying.run(Retrying.java:66) at com.google.cloud.storage.StorageImpl.run(StorageImpl.java:1608) at com.google.cloud.storage.StorageImpl.update(StorageImpl.java:534) at com.google.cloud.storage.Bucket.update(Bucket.java:1016) ``` Reference code https://docs.cloud.google.com/storage/docs/samples/storage-enable-bucket-lifecycle-management#storage_enable_bucket_lifecycle_management-java
kerem 2026-03-03 12:09:25 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@fsouza commented on GitHub (Jan 30, 2026):

@claude can you try fixing this, please?

<!-- gh-comment-id:3826445959 --> @fsouza commented on GitHub (Jan 30, 2026): @claude can you try fixing this, please?
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#250
No description provided.