Delete retention of a non-current blob fails #2980
Labels
api: storage
Issues related to the googleapis/java-storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
Maven Artefact: com.google.cloud:google-cloud-storage:2.49.0
OS Type: Linux (Manjaro)
Java version: openjdk version "21.0.6" 2025-01-21
Steps to reproduce
Code example
Expected code to delete the non-current blobs retention:
Stack trace
Any additional information below
Expected behavior:
The code example deletes the blobs retention.
Actual behavior:
The code fails with an exception, stating the non-current blob is not found
Working workaround:
It looks like the generation information is not send in the update call by default. Marking the blobId generation field as changed seems to force the generation information to be submitted, at least in the current version of the maven artefact.
Let me know if you need any more information.
The text was updated successfully, but these errors were encountered: