[BUG] Azure.Storage.Blobs.BlobClient.UploadAsync times out when the stream is at a position different than 0 #13877
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
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.
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Milestone
Describe the bug
Apparently similar to #9212 (see comment - I'm opening another issue as that one has already been closed).
If you call
BlobContainerClient.UploadBlobAsync(string, Stream)
orBlockBlobClient.UploadAsync(Stream, ...)
and pass aMemoryStream
(didn't test with any other type ofStream
) withPosition
that is any other than0
, a timeout occurs.Expected behavior
These are possible, acceptable behaviors:
If the stream is seekable:
Position
until the endAnd if
Position == Length
:null
Response<T>.Value
If the stream is not seekable:
Actual behavior
To Reproduce
Environment:
dotnet --info
:I might want to fix this 😊 (btw, why is this repo in the gigabytes? 😐)
The text was updated successfully, but these errors were encountered: