Open blueww opened 4 years ago
Negative check, will update after ga release.
It is not upload, but it might be related to this issue,
when we set a range with starting value greater than the content size we get 206
instead of 416
In [4]: response = requests.get(url, headers={"x-ms-range": "bytes=10985860-10985870"})
In [5]: response.status_code
Out[5]: 206
In [6]: response.headers
Out[6]: {
'Server': 'Azurite-Blob/3.14.2',
'last-modified': 'Fri, 01 Oct 2021 19:10:01 GMT',
'x-ms-creation-time': 'Fri, 01 Oct 2021 19:02:06 GMT',
'content-length': '-500100',
'content-type': 'application/octet-stream',
'content-range': 'bytes 10985860-10485759/10485760',
'etag': '"0x1CFD59B66D49660"',
'content-md5': '1B2M2Y8AsgTpgAmY7PhCfg==',
'x-ms-blob-type': 'BlockBlob',
'x-ms-lease-state': 'available',
'x-ms-lease-status': 'unlocked',
'x-ms-request-id': '96f22075-4264-4613-80ee-85d63f4dcbe0',
'x-ms-version': '2020-10-02',
'accept-ranges': 'bytes',
'date': 'Fri, 01 Oct 2021 19:10:44 GMT',
'x-ms-server-encrypted': 'true',
'Connection': 'keep-alive',
'Keep-Alive': 'timeout=5'
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The error code defined here also doesn't match the service:
I think "Requested Range Not Satisfiable" should be "InvalidPageRange"
Which service(blob, file, queue, table) does this issue concern?
blob
Which version of the Azurite was used?
3.3.0-preview
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
VS code
What's the Node.js version?
v10.15.3
What problem was encountered?
PageBlob_UploadPages: Write out-of-range pages should fail
Steps to reproduce the issue?
Create a page blob with length 4194304 Write a page to 512-4194815 Azurite not fail. Expecte HttpStatusCode: RequestedRangeNotSatisfiable = 416 Expected Error code: "InvalidPageRange"
Have you found a mitigation/solution?
No
Debug Log:
Test Case: