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

CLOUDP-237474: AtlasCLI fails to support collection names with dots for custom roles #2767

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

gssbzn
Copy link
Collaborator

@gssbzn gssbzn commented Mar 13, 2024

CLOUDP-237474: properly handle db names with dots

@gssbzn gssbzn marked this pull request as ready for review March 13, 2024 10:30
@gssbzn gssbzn requested a review from a team March 13, 2024 10:30
@@ -56,7 +56,7 @@ func BuildAtlasActions(a []string) []atlasv2.DatabasePrivilegeAction {
resource := strings.Split(action[1], resourceSep)
resourceStruct.Db = resource[0]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this works if db names don't have dots, which is indeed a MongoDB restriction https://www.mongodb.com/docs/manual/reference/limits/#naming-restrictions

I'm going to update the task and PR titles (support collection names with dots)

Copy link
Collaborator

@tibulca tibulca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tibulca tibulca changed the title CLOUDP-237474: AtlasCLI fails to support db names with dots for custom roles CLOUDP-237474: AtlasCLI fails to support collection names with dots for custom roles Mar 13, 2024
@gssbzn gssbzn merged commit 1181f26 into master Mar 13, 2024
20 checks passed
@gssbzn gssbzn deleted the CLOUDP-237474 branch March 13, 2024 12:19
@fmenezes fmenezes mentioned this pull request Apr 5, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants