com.google.cloud.storage.Storage: Cannot clear BlobInfo attributes on update
Closed this issue · 1 comments
RG9 commented
Environment details
- version: google-cloud-storage-2.40.1.jar
- Java version: 21.0.2
What I want to do using Java API and how it works currently using frontend?
I want to clear (set null
) attribute Content-Disposition
.
If I left empty Content-Disposition
field in following form, then reading value of Blob#getContentDisposition
I get null
.
Javadoc says that it should be possible using update
method:
Steps to reproduce
Current behavior
contentDisposition
value didn't change.
Expected behavior
contentDisposition
value should be cleared (set to null
).
Debugging
BenWhitehead commented
Thanks for raising this issue, fix implemented in #2664