DownloadBuffer with HTTPRange return unexpected number of written bytes #23884
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
needs-team-triage
Workflow: This issue needs the team to triage.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Storage
Storage Service (Queues, Blobs, Files)
Bug Report
If the file have less then requested
Count
, it should return the number of bytes that were actually written to the buffer (the variablen
in that example).instead it always return the
Count
, meaning that if we pass theCount
in the range option,n
is always equals toCount
.It's a problem since we don't now how to slice the response in order to get the actual data without garbage.
The above also true for azfile library.
What I expected
DownloadBuffer should return the number of bytes that were actually written to the buffer.
The text was updated successfully, but these errors were encountered: