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 — Delete retention of a non-current blob fails · Issue #2980 · 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.
Delete retention of a non-current blob fails #2980Copy link Copy link Labels api: storageIssues related to the googleapis/java-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionEnvironment detailsMaven Artefact: com.google.cloud:google-cloud-storage:2.49.0 Steps to reproduce
Code exampleExpected code to delete the non-current blobs retention: var blobId = BlobId.of("my-bucket", "my-blob-name", 1741083479142854L); var blob = storage.get(blobId, Storage.BlobGetOption.generationMatch()); var newblob = blob.toBuilder().setRetention(null).build(); newblob.update(Storage.BlobTargetOption.overrideUnlockedRetention(true), Storage.BlobTargetOption.generationMatch()); Stack traceAny additional information belowExpected behavior: Actual behavior: Working workaround: var newblob = blob.toBuilder().setBlobId(/* trigger a change to the generation */ BlobId.of(blobId.getBucket(), blobId.getName())).setBlobId(/* set generation to the correct one */ blobId).setRetention(null).build(); newblob.update(Storage.BlobTargetOption.overrideUnlockedRetention(true), Storage.BlobTargetOption.generationMatch()); Let me know if you need any more information. Activity
MetadataMetadataAssigneesLabelsapi: storageIssues related to the googleapis/java-storage API.priority: p2Moderately-important priority. Fix may not be included in 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. |