Skip to content

fix dsn config when not unix socket #1457

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
Apr 25, 2018

Conversation

halaei
Copy link
Contributor

@halaei halaei commented Mar 8, 2018

It is assumed in #1397 that dsn is only for unix sockets. But the assumption is wrong, causing issues #1456 and #1449

IMO, a better approach would be having a separate unix_socket config to be encoded via rawurlencode() in this package or just let the users call rawurlencode() themselves when providing such URIs in 'dsn'.

Closes: #1456, #1449

@halaei halaei force-pushed the fix-dsn-when-not-unix-socket branch from aca8ac0 to 0e69388 Compare March 8, 2018 10:19
@ghost
Copy link

ghost commented Mar 17, 2018

rawurlencode($dsn_string) causes problem if not using unix socket......

@jgcl
Copy link
Contributor

jgcl commented Mar 20, 2018

merge this pull request, please!!!!!!

hlorofos added a commit to hlorofos/laravel-mongodb that referenced this pull request Apr 19, 2018
@hlorofos
Copy link
Contributor

@halaei good job on this, I have to fork the project and apply your fix to use the driver.
Its ridiculous this PR still haven't merged yet 8-)
I also added an ability to parse out database name from DSN string here #1491

@halaei
Copy link
Contributor Author

halaei commented Apr 19, 2018

This is a great package. It is sad that the issues and pull requests are not handled as fast as they could be. Probably the owner, @jenssegers, needs some maintenance help?

@pendexgabo
Copy link

I would like to offer my help in any way in order to push this live. #1397 broke many things at once

@jenssegers jenssegers merged commit 657da13 into mongodb:master Apr 25, 2018
@jenssegers
Copy link
Contributor

Sorry for the delay!

softdevee added a commit to softdevee/laravel-mongodb that referenced this pull request Sep 5, 2022
lisadeloach63 added a commit to lisadeloach63/mongodb-laravel that referenced this pull request Oct 7, 2022
PermitinYury pushed a commit to PermitinYury/laravel-mongodb that referenced this pull request Feb 17, 2023
KarenEtheridg pushed a commit to KarenEtheridg/laravel-mongodb that referenced this pull request Feb 17, 2023
mnphpexpert added a commit to mnphpexpert/laravel-mongodb that referenced this pull request Sep 2, 2024
mnphpexpert added a commit to mnphpexpert/laravel-mongodb that referenced this pull request Sep 2, 2024
Giant775 added a commit to Giant775/laravel_MongoDB that referenced this pull request Nov 15, 2024
dev-arrow added a commit to dev-arrow/laravel-mongodb that referenced this pull request Nov 26, 2024
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.

No suitable servers found (serverSelectionTryOnce set): [Failed to resolve 'localhost:27017']
5 participants