Skip to content

Fix getDefaultDatabaseName to handle +srv URLs. #1976

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

Merged
merged 1 commit into from
Mar 3, 2020
Merged

Fix getDefaultDatabaseName to handle +srv URLs. #1976

merged 1 commit into from
Mar 3, 2020

Conversation

derekrprice
Copy link
Contributor

Fixes bug #1861. I wasn't sure how to test this. The updated method is protected, and the rest of the tests appear to rely on a test environment with a real Mongo instance. I'm guessing that the targeted test environment doesn't currently support DNS SRV records.

@divine divine linked an issue Mar 3, 2020 that may be closed by this pull request
Copy link
Contributor

@divine divine left a comment

Choose a reason for hiding this comment

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

LGTM

@divine divine merged commit 01dfe3c into mongodb:master Mar 3, 2020
mnphpexpert added a commit to mnphpexpert/laravel-mongodb that referenced this pull request Sep 2, 2024
Fix getDefaultDatabaseName to handle +srv URLs.
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.

URL DB Parsing Fails for +SRV URLs
2 participants