com.google.cloud.storage.Storage: Cannot clear BlobInfo attributes on update #2662
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
What I want to do using Java API and how it works currently using frontend?
I want to clear (set
null
) attributeContent-Disposition
.If I left empty
Content-Disposition
field in following form, then reading value ofBlob#getContentDisposition
I getnull
.Javadoc says that it should be possible using
update
method:Steps to reproduce
Storage#update
like this:Current behavior
contentDisposition
value didn't change.Expected behavior
contentDisposition
value should be cleared (set tonull
).Debugging
CONTENT_DISPOSITION
is modified:contentDisposition
:The text was updated successfully, but these errors were encountered: