Skip to content

[BUG] Missing Content-Length Header in BlobStorage createNamespace #39255

@carl-sauter

Description

@carl-sauter

API Spec link

API Spec version

2025-11-05

Describe the bug

Azure Blobstorage Container_Create needs the header Content-Length set to 0, although the body is empty. Otherwise the api will return 411 Length Required

Expected behavior

No error

Actual behavior

411 Length Required

Reproduction Steps

POST [{BLOB_STORAGE_URL}](https://myaccount.blob.core.windows.net)/mycontainer?restype=container
Authorization: Bearer ...
Date: Sun, 25 Sep 2011 22:50:32 GMT
x-ms-version: 2025-07-05

Environment

Real BlobStorage, Azurite is generated from the spec and will accept the request without Content-Length header.

See: Azure/Azurite#2618

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions