Skip to content

Azurite emulator does not return 412 Precondition failed providing IfMatch = "*" for blob uploads for non-existent blob #2589

@jasoncheungg

Description

@jasoncheungg

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

Which version of the Azurite was used?
3.34.0

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

What's the Node.js version?
v22.17.0

What problem was encountered?
Expected blob upload operation to fail with 412 Precondition failed when the blob does not already exist and the If-Match header is set to "*". However, the operation succeeds instead of a 412 precondition failure raising which is not consistent with Azure Storage and the Azure Storage Emulator (Legacy) here.

Steps to reproduce the issue?

  1. Start the Azurite emulator
  2. Upload a blob with the if-match="*" header
  3. Observe that the request succeeds which is incorrect instead of returning a 412 precondition failed error

Have you found a mitigation/solution?
No

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions