-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage: cannot access / delete versioned objects #2463
Comments
@pdknsk Thanks for the report! You are correct that we currently have no support for addressing a specific generation of a blob. ISTM that the API endpoints taking the
The API endpoints taking the
We should probably also plan to support the various "conditional" parameters that these APIs support ( |
The https://cloud.google.com/storage/docs/object-versioning#_UpdatingMetadata https://cloud.google.com/storage/docs/generations-preconditions#examples_of_race_conditions |
Implementing preconditions is probably not necessary when |
This is closely related but maybe not the same, let me know if I should create a new issue: I'd love support for preconditions. I personally only need "upload blob only if it does not exist", and not full support. I'm contemplating some gross hacks to do this, although for now I'm going with the "incorrect" version of checking exists() first. |
Is there a roadmap that covers this issue and/or can I volunteer some help? |
Hello, feature requests will now be tracked in the project Feature Requests. I will close this issue now, please feel free to continue to address any issues/concerns here. |
Currently,
blob.delete
andbucket.delete_blob
always delete the live version on buckets with versioning enabled. Other than being a missing feature, this can also cause some very unwanted behaviour, if a new version of the object is uploaded during the process of getting and deleting an object.The text was updated successfully, but these errors were encountered: