azure-cosmos-db-emulator-docker icon indicating copy to clipboard operation
azure-cosmos-db-emulator-docker copied to clipboard

Patch precondition returns OK when it should be 'precondition failed'

Open onionhammer opened this issue 2 weeks ago • 0 comments

Describe the bug I have a test which runs a patch operation with two preconditions and a filter predicate, In the test I expect that I will receive a precondition failed, Running against an actual Cosmos database in Azure I get the expected result when I run the emulator preview I receive an OK result.

To Reproduce

  1. Create a document
  2. Patch the document by adding a new string, like "/Value = hello" and a filter predicate of "WHERE NOT IS_STRING(c.Value)
  3. Repeat step 2

Expected behavior Should receive response 'PreconditionFailed'

**Docker Images Used: **

  • Linux: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview

onionhammer avatar Nov 21 '25 18:11 onionhammer