Skip to content

Fixed Content-MD5 serialization and typing#16987

Merged
tasherif-msft merged 2 commits intoAzure:masterfrom
tasherif-msft:fix-content-md5
Mar 1, 2021
Merged

Fixed Content-MD5 serialization and typing#16987
tasherif-msft merged 2 commits intoAzure:masterfrom
tasherif-msft:fix-content-md5

Conversation

@tasherif-msft
Copy link
Copy Markdown
Contributor

@tasherif-msft tasherif-msft commented Mar 1, 2021

This resolves #15919.
Currently the way content-md5 is deserialized is the original bytearray. This is also what the customer is supposed to pass.
At the moment if the user passes content-md5 in ContentSettings() and passes it to upload_blob() it would throw (pretty bad bug), since we are trying to serialize a passed str without providing encoding type.
This serialization is now removed and the customer can directly pass the content-md5 they get from calling get_blob_peroperties() for example.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in azure-storage-blob

2 participants