Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Content-MD5 serialization and typing #16987

Merged
merged 2 commits into from
Mar 1, 2021

Conversation

tasherif-msft
Copy link
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.

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Mar 1, 2021
@tasherif-msft tasherif-msft merged commit abbfb51 into Azure:master Mar 1, 2021
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this pull request Mar 1, 2021
…into correct_healthcare

* 'master' of https://github.com/Azure/azure-sdk-for-python: (30 commits)
  [EventGrid] Improve docs (Azure#16986)
  Fixed delete_blob method signature (Azure#16983)
  Fixed Content-MD5 serialization and typing (Azure#16987)
  [eventgrid] Black formatting and tests suite (Azure#16989)
  Appconfig perf test (Azure#16809)
  adds support for milliseconds on datetime objects (Azure#16847)
  [ServiceBus] Improve AMQP Error handling (Azure#16427)
  T2 resource 2021 02 26 (Azure#16961)
  T2 servicefabricmanagedclusters 2021 02 26 (Azure#16958)
  Update Prepare-Release script (Azure#16976)
  the previous filter was erroneously filtering out real files. (Azure#16978)
  Update azure-core minimum version (Azure#16968)
  update documention in depends section of eng_sys_checks.md (Azure#16967)
  version (Azure#16959)
  T2 web 2021 02 24 (Azure#16901)
  Change test pipeline to run in eastus2 (Azure#16950)
  Adding azure-devtools to mr-auth dev_requirements (Azure#16953)
  Add perf tests for eventgrid (Azure#16949)
  temp fix for canary tests (Azure#16945)
  Update get_package_properties to also return path to setup.py (Azure#16946)
  ...
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