GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Storage#update always removes all lifecycle rules if they are not specified · Issue #850 · googleapis/java-storage
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
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 #850Copy link Copy link Closed Labels api: storageIssues related to the googleapis/java-storage API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionIssue with Expected behaviour:update only fields that are specified in Actual behaviour:along the updated fields, removes lifecycle rules if they are not specified. Example code: val bucketId = "[...]" val client = StorageOptions.getDefaultInstance.getService val before = client.get(bucketId) println(s"Before: ${before.getLifecycleRules.size()}") val updateRequest = BucketInfo .newBuilder(bucketId) .setLabels(singletonMap("test", "test")) .build client.update(updateRequest) val after = client.get(bucketId) println(s"After: ${after.getLifecycleRules.size()}") Actual output (for bucket with 1 lifecycle rule): Before: 1 After: 0 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
Activity
MetadataMetadataAssigneesLabelsapi: storageIssues related to the googleapis/java-storage API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |