Azure / azure-cosmosdb-java

Java Async SDK for SQL API of Azure Cosmos DB
MIT License
54 stars 61 forks source link

Replace throws ambiguous exception on replace when self link is null #247

Open j82w opened 5 years ago

j82w commented 5 years ago

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.