You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Storage#update always removes all lifecycle rules if they are not specified #850
Issue with
com.google.cloud.storage.Storage#update(com.google.cloud.storage.BucketInfo, com.google.cloud.storage.Storage.BucketTargetOption...)Expected behaviour:
update only fields that are specified in
BucketInfoparameter.Actual behaviour:
along the updated fields, removes lifecycle rules if they are not specified.
Example code:
Actual output (for bucket with 1 lifecycle rule):
I suspect that issue is located here:
java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java
Lines 1841 to 1869 in accf502