Skip to content

Put Block without content-length returns a 400 response #2043

@kesselb

Description

@kesselb

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

blob

Which version of the Azurite was used?

0bf58610baaf

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

DockerHub

What's the Node.js version?

The one you bundled with the docker image ;)

What problem was encountered?

The error message for a missing content-length header is different from azure.

411 is documented here: https://learn.microsoft.com/en-us/rest/api/storageservices/put-block

Steps to reproduce the issue?

Send a put block request to azurite blob and omit the content-lenght header.
=> Response with status code 400 / Bad Request

Send a put block request to azure blob and omit the content-lenght header.
=> Response with status code 411 / Content-Length HTTP header is missing.

Have you found a mitigation/solution?

Send a content-length header ;)

Metadata

Metadata

Assignees

Labels

alignmentAlignment between Azurite with Azure Storage productionblob-storage

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions