uploadStream uploads 0 size object when you pass an empty object to bufferSize #31760
Open
1 of 2 tasks
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.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Describe the bug
If you pass an empty object to
bufferSize
parameter ofuploadStream
then it will upload and overwrite the object with 0 bytes, completely ignoring the input stream without any indication that something went wrongTo Reproduce
Steps to reproduce the behavior:
Expected behavior
Throw an error that bufferSize has invalid type or any other indication that it didn't upload the entire stream
The text was updated successfully, but these errors were encountered: