Skip to content

Bug in azure-storage-blob #15919

@Juliehzl

Description

@Juliehzl

As shown in model serialization for ContentSettings, the required type for content_md5 is str as shown below:


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.
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.

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions