Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.25k stars 4.59k forks source link

[BUG] Using ResourceManager.CosmosDB Create container that both databaseName and containerName has space will throw DoubleEncodedException #44016

Open blankor1 opened 4 months ago

blankor1 commented 4 months ago

Library name and version

Azure.ResourceManager.CosmosDB

Describe the bug

Using this Azure.ResourceManager.CosmosDB to create container that both databaseName and containerName has space will throw DoubleEncodedException.

Expected behavior

Created successfully

Actual behavior

throw doubleEncouding exception

Reproduction Steps

database name contains space: e.g. "db 1" container name contains space: e.g. "container 1"

call these api:

this.Databases = this.CosmosDBAccount.GetCosmosDBSqlDatabases()
var containers = this.Databases.Get(dbId).Value.GetCosmosDBSqlContainers();
bool collectionExists = containers.Exists(collectionId).Value;

Environment

No response

github-actions[bot] commented 4 months ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

blankor1 commented 3 months ago

Hi, friendly ping, any update for this?

melina5656 commented 3 months ago

Hi, friendly ping, any update for this?

Hi @blankor1, this is an issue that needs to be resolved by the service team. We will contact the service team as soon as possible.