Cosmos: Pipe character is escaped for key value when creating a new document #20665
Labels
area-cosmos
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
We receive an id from a third party application where the format of the id is
<name>|<guid>
for example"test|36f47ad4-e23f-43f1-8c37-304df4e6193a"
.When creating a document and marking this value as the key-value EF escapes the pipe character for the id so the example ends up being
test/|36f47ad4-e23f-43f1-8c37-304df4e6193a
. If the value is not marked as the key-value it is not escaped. Using EF to retrieve the same document works fine however when viewing the values using the Azure Data Explorer it breaks with the following message:When creating the same document using the same key using the Cosmos SDK the character is not escaped and I am able to view the document using Azure Data Explorer.
The fluent setup I used
and saving the user
Further technical details
EF Core version: 3.1.3
EF Core.Cosmos version 3.1.3
Target framework: NET Core 3.1
The text was updated successfully, but these errors were encountered: