Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stageBlock API does not return Content-MD5 #2394

Open
spintower opened this issue May 3, 2024 · 1 comment
Open

stageBlock API does not return Content-MD5 #2394

spintower opened this issue May 3, 2024 · 1 comment
Assignees
Labels
alignment Alignment between Azurite with Azure Storage production blob-storage
Milestone

Comments

@spintower
Copy link

Which service(blob, file, queue, table) does this issue concern?

Blob

Which version of the Azurite was used?

3.30.0

Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)

DockerHub

What's the Node.js version?

embedded in container

What problem was encountered?

stageBlock API always returns null in Content-MD5 header.

Steps to reproduce the issue?

Invoke stageBlock API. Content-MD5 header is always null.

INFO ROOT -- {cf1a7f88-2fda-496d-b078-e9a7cbbb8617}: {Starting request to 'https://127.0.0.1:10000/account2/test-container/test-data/4123905f-3265-492b-a6e9-198570d5ea4d?blockid=IjB4MjU2MzI1RUVFMDE0NTQwIi0wMDAwMA%3D%3D&comp=block' at 'Fri, 03 May 2024 18:11:45 GMT'.}
...
INFO ROOT -- {cf1a7f88-2fda-496d-b078-e9a7cbbb8617}: {Response received. Status code = '201', Request ID = '87e6a807-9767-4127-aefc-086bbdcdc162', Content-MD5 = 'null', ETag = 'null', Date = 'Fri, 03 May 2024 18:11:45 GMT'.}

Looks like this is marked TODO in the code:

https://github.com/Azure/Azurite/blob/main/src/blob/handlers/BlockBlobHandler.ts#L255

Have you found a mitigation/solution?

Maybe change line 255 to use calculatedContentMD5?

contentMD5: calculatedContentMD5
@blueww blueww added blob-storage alignment Alignment between Azurite with Azure Storage production labels May 8, 2024
@blueww
Copy link
Member

blueww commented May 8, 2024

@EmmaZhu
Would you please help to look?

@EmmaZhu EmmaZhu added this to the Nov 12 2024 milestone Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alignment Alignment between Azurite with Azure Storage production blob-storage
Projects
None yet
Development

No branches or pull requests

3 participants