Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
blankor1 opened this issue May 14, 2024 · 3 comments
Assignees
Labels
Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention 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

Comments

@blankor1
Copy link

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 github-actions bot added Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention 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 labels May 14, 2024
Copy link

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

@blankor1
Copy link
Author

Hi, friendly ping, any update for this?

@melina5656
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention 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
Projects
None yet
Development

No branches or pull requests

4 participants