Closed williexu closed 5 years ago
Hi @williexu, thanks for reaching out!
According to the REST doc, set_blob_service_properties should be called with one or more root elements specified in the request body. Thus, I think the desired behavior in your scenario should be throwing an error saying that at least some property needs to be changed. Do you agree?
@zezha-msft yes, an error telling the user to specify at least one property would work nicely. Thanks
@williexu sounds good! I've added this item to our backlog.
the bug is fixed in azure-storage-blob version 2.0.1
Which service(blob, file, queue) does this issue concern?
blob
Which version of the SDK was used? Please provide the output of
pip freeze
.1.3.1
What problem was encountered?
set_blob_service_properties()
throws error with all args None despite expecting no-op:Debugging shows that
_convert_service_properties_to_xml()
generates the following improper xml:b"<?xml version='1.0' encoding='utf-8'?>\n<StorageServiceProperties />"
Have you found a mitigation/solution?
Yes, just provide one of the args
Note: for table service, please post the issue here instead: https://github.com/Azure/azure-cosmosdb-python.