[BUG] Single quote in PartitionKey not serialized properly in PATCH entity #21635
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Tables
Describe the bug
When the Table entity partition key contains single quotes, the PATCH operation (where the PK is part of the URL path, not query string) fails. The single quote is URL encoded as
%27
. The legacy SDK escapes it with two single quotes.Found while trying to fix Azure/Azurite#790.
Expected behavior
It should escape the single quote in a way that Table storage expects.
Actual behavior (include Exception or Stack Trace)
To Reproduce
Environment:
dotnet --info
output for .NET Core projects): .NET SDK 5.0.300The text was updated successfully, but these errors were encountered: