Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(cli): Fix MongoDB connection database name parsing #2845

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

nicholaswhitney
Copy link
Contributor

From the feathers discord:

The current parsing method fails the following MongoDB connection string:

mongodb://user:P%40ss@localhost:27017/databaseName?authSource=admin

Where it parses databaseName?authSource=admin as the database name instead of just databaseName.

The following change should parse all database connection strings correctly.

There don't seem to be any open issues related to this, and it isn't dependent on PRs in other repos.

From the feathers discord:

The current parsing method fails the following MongoDB connection string:
```
mongodb://user:P%40ss@localhost:27017/databaseName?authSource=admin
```

Where it parses `databaseName?authSource=admin` as the database name instead of just `databaseName`.

The following change should parse all database connection strings correctly.
@netlify
Copy link

netlify bot commented Nov 3, 2022

👷 Deploy request for feathers-dove pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit c78a8e7

@daffl daffl changed the title Fix template: MongoDB database name parsing fix(cli): Fix MongoDB connection database name parsing Nov 3, 2022
@daffl daffl merged commit 50e7463 into feathersjs:dove Nov 3, 2022
@daffl
Copy link
Member

daffl commented Nov 3, 2022

Great, thank you!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants