[BUG][Blob Storage] 0 byte blobs are uploaded if incorrect length is specified #13092
Closed
3 tasks done
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
pillar-reliability
The issue is related to reliability, one of our core engineering pillars. (includes stress testing)
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Describe the bug
With the new beta version of the blob storage SDK
12.8.0-beta.1
, zero length blobs are uploaded if the specified blob size does not match with the input stream. This can mislead applications into believing that blobs have been uploaded correctly. The previous version of the SDK threw an error instead of uploading the blob.Exception or Stack Trace
NA
To Reproduce
Sample code to repro this:
Output with
12.8.0-beta.1
:Output with
12.7.0
:Code Snippet
Added above
Expected behavior
Either the SDK should throw an error if the lengths did not match or treat the input stream as source of truth and upload the content available from the stream.
Screenshots
NA
Setup (please complete the following information):
Additional context
NA
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: