Azure / Azure/azure-documentdb-java

ConnectionMode.DirectHttps mode doesn't enforce RequestOptions' AccessCondition

Open
#129 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
51
Forks
52
PR merge metrics
No merged PRs in 30d

Description

I'm using the latest SDK 2.1.1. It seems that if I set `ConnectionPolicy`'s connection mode to be `DirectHttps`, `RequestOptions`' `AccessCondition` (type: `IfMatch`) will no longer be enforced. Request with non matching `AccessCondition` would succeed. My expectation is that such request would get a 412 with _{"Errors":["One of the specified pre-condition is not met"]}_ just like the `Gateway` connection mode, but it doesn't behave like that. This is a nasty bug, please fix it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.