[BUG] Missing deserialization of LeaseStatus in Azure.Storage.Blobs.BlobExtensions.ToBlobDownloadStreamingResult #22144
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.
Functions
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
Azure.Storage.Blobs.BlobExtensions.ToBlobDownloadStreamingResult()
does not populate theBlobDownloadDetails
'sLeaseState
from the response headers object. It does set theLeaseState
andLeaseDuration
:azure-sdk-for-net/sdk/storage/Azure.Storage.Blobs/src/BlobExtensions.cs
Lines 872 to 873 in 0c9f9ef
but is missing something like:
This is a regression introduced in 1814567.
As a result of this, the
BlobDownloadDetails
you get after doing e.g.BlobBaseClient.DownloadAsync()
returns aLeaseStatus
that is always equal toLeaseStatus.Locked
(since this is the default value of the enum).Expected behavior
The
BlobDownloadDetails
should contain aLeaseStatus
that reflects the value of thex-ms-lease-status
header from the "Get Blob" HTTP response.Actual behavior (include Exception or Stack Trace)
BlobDownloadDetails
always contains aLeaseStatus
equal toLeaseStatus.Locked
.To Reproduce
Environment:
The text was updated successfully, but these errors were encountered: