Skip to content

Conversation

@jasoncheungg
Copy link

This PR fixes the issue where the Azurite V3 emulator does not return 412 Precondition Failed if a resource (blob) does not exist and "*" IfMatch is provided.

Issue #2589

@jasoncheungg jasoncheungg changed the title Fix * IfMatch for non-existent resource not throwing 412 Precondition… Fixes #2589 Dec 23, 2025
@jasoncheungg jasoncheungg changed the title Fixes #2589 Fixes Azurite V3 emulator not returning 412 Precondition Failed if a resource (blob) does not exist and "*" IfMatch is provided. Dec 23, 2025
@jasoncheungg
Copy link
Author

@microsoft-github-policy-service agree company="Microsoft"

throw StorageErrorFactory.getConditionNotMet(context.contextId!);
}
return;
// Throw if there is any value in if-match for non exist blob
Copy link
Member

@blueww blueww Jan 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you validate all the write request call this function on real azure server will have this behavior?
If so, this change is OK.
Else, you might need to so some check for the API here.

Others are all good for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants