Open magicmaaaaan opened 2 years ago
I can confirm this fails on normal storage accounts, not just azurite.
Note, we're sending the range with this format:
x-ms-range: bytes=0-16777215
Azure Storage accepts this for files with a length greater than zero, but not for zero-length files.
The specifications for x-ms-range specify the format as bytes=startByte-
or bytes=startByte-endByte
.
@bmc-msft #1094 fixed this for azurite but you noted this is also an issue when hitting the production services. What needs to be done to fix that issue?
Version: f9ec73563f615553ca097b0457bed8347ad2227d
I'm trying to download a zero byte blob from blob storage using
BlobClient::get
and am running into errors. Note that this only happens when the blob is empty (0 bytes).Here's a simple program that throws an error (similar to
stream_blob_01.rs
).bytes 0--1/0
cannot be parsed as aContentRange
because the end range is -1. (I'm not sure if this is valid in the first place and may actually be an issue with Azurite.)But I also tried with the actual blob storage service.
In this case, it seems like the Rust SDK sent an invalid request.