Skip to content

[BUG] ContentRange is null in BlobDownloadDetails when calling DownloadStreamingAsync with HttpRange "0-" #47882

@eangelov

Description

@eangelov

Library name and version

Azure.Storage.Blobs 12.23.0

Describe the bug

The ContentRange field in the BlobDownloadDetails that is returned when calling DownloadStreamingAsync with Range set to "0-" is null.

Expected behavior

ContentRange should be set to "bytes 0-end/length" the same when calling the same methods with a Range of "1-" ContentRange is set to "bytes 1-end/length"

Actual behavior

ContentRange is null

Reproduction Steps

BlobContainerClient containerClient = new ( connString, containerName );
BlobClient blobClient = containerClient.GetBlobClient( objectKey );

Response downloadFromStart = await blobClient.DownloadStreamingAsync(new BlobDownloadOptions(){
Range = new HttpRange( 0 )
});
Console.WriteLine( downloadFromStart.Value.Details.ContentRange );

Environment

No response

Metadata

Metadata

Assignees

Labels

ClientThis issue is related to a non-management packageService AttentionWorkflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions