Azure / Azure/azure-cosmosdb-java

Replace throws ambiguous exception on replace when self link is null

Open
#247 0 comments 0 reactions 0 assignees View on GitHub
v2
Dominant language
Java
Stars
59
Forks
68
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Replace throws ambiguous exception on replace when self link is null.

**To Reproduce**
1. Create a trigger without a self link
2. Call client.ReplaceTrigger(updateTrigger);

**Expected behavior**
java.lang.IllegalArgumentException: The self link property is required for replace operations.

**Actual behavior**
java.lang.IllegalArgumentException: Entity with the specified id does not exist in the system.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.