Open blueww opened 4 years ago
I also experienced this @blueww when my tests relying on Azurite started failing. I use the https://godoc.org/github.com/Azure/azure-storage-blob-go/azblob#UploadStreamToBlockBlob function from https://github.com/Azure/azure-storage-blob-go
The check is still not implemented in Azurite. We will priority it with all other feature requirements.
The check is still not implemented in Azurite. We will priority it with all other feature requirements.
Please increase the priority of this issue. Microsoft is pushing Azurite as the official replacement for the Azure Storage Emulator. Yet, here we have something - verifying that I set the correct MD5 - that's impossible to test with Azurite at the moment. I can't think of anything more important for file/blob operations than data integrity so this is something I absolutely have to get right in my client but I can only test it against the Azure live site.
I've also been getting this problem as well! Just leaving a comment here to raise awareness, we are pushing heavily to use Azurite and this is our last blocker.
If I have time I can maybe put in a PR.
Okay, I think I've patched BlockBlob_StageBlock. I don't think I have the time to tackle UploadPages but maybe someone can take my PR as a template and apply something similar there. PR is #689
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?
StageBlock/UploadPages: not check the content aligned with "Content-MD5" header So the request will success, even input a wrong "Content-MD5" header
Steps to reproduce the issue?
StageBlock/UploadPages with a wrong a wrong "Content-MD5" header
Have you found a mitigation/solution?
No
Rest doc:
Test case info: