-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)Storage Service (Queues, Blobs, Files)bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.
Description
As shown in model serialization for ContentSettings, the required type for content_md5 is str as shown below:
azure-sdk-for-python/sdk/storage/azure-storage-blob/azure/storage/blob/_models.py
Line 621 in 00c9044
| :param str content_md5: |
But when uploading, content_md5 needs to be converted to
bytearray and the following code would cause a bug when converting a string to bytearray.azure-sdk-for-python/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py
Line 382 in 00c9044
| blob_content_md5=bytearray(content_settings.content_md5) if content_settings.content_md5 else None, |
blob_content_md5=bytearray(content_settings.content_md5) if content_settings.content_md5 else None,
TypeError: string argument without an encoding
This would cause error when uploading with content_md5. Please fix asap.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)Storage Service (Queues, Blobs, Files)bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.