Azure / azure-storage-cpplite

Lite version of C++ Client Library for Microsoft Azure Storage
MIT License
25 stars 43 forks source link

put_blob loses errors #47

Closed jking777 closed 4 years ago

jking777 commented 4 years ago

blob_client_wrapper::put_blob may lose error codes from its call to m_blobClient->upload_block_blob_from_stream. If that call results in an error then errno is set to the value of the HTTP error code, for example 403. Then put_blob closes the input stream, which will reset errno to 0. The caller of blob_client_wrapper::put_blob then has no indication that the upload failed.

Jinming-Hu commented 4 years ago

I'll take time to look into this issue.

Jinming-Hu commented 4 years ago

This should have been fixed in this commit https://github.com/Azure/azure-storage-cpplite/commit/c771d89e8493906b94390d082d714754ac75bcff.

jking777 commented 4 years ago

Thank you!