-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix url parsing for a mongodb+srv url that has commas in the dat…
…abase name (#2789)
- Loading branch information
1 parent
6c8cc84
commit 58c4e69
Showing
8 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"uri": "mongodb+srv://test1.test.build.10gen.cc/some,db?replicaSet=repl0", | ||
"seeds": [ | ||
"test1.test.build.10gen.cc:27017", | ||
"test1.test.build.10gen.cc:27018" | ||
], | ||
"hosts": [ | ||
"localhost:27017", | ||
"localhost:27018", | ||
"localhost:27019" | ||
], | ||
"options": { | ||
"replicaSet": "repl0", | ||
"ssl": true | ||
}, | ||
"parsed_options": { | ||
"dbName": "some,db" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
uri: "mongodb+srv://test1.test.build.10gen.cc/some,db?replicaSet=repl0" | ||
seeds: | ||
- test1.test.build.10gen.cc:27017 | ||
- test1.test.build.10gen.cc:27018 | ||
hosts: | ||
- localhost:27017 | ||
- localhost:27018 | ||
- localhost:27019 | ||
options: | ||
replicaSet: repl0 | ||
ssl: true | ||
parsed_options: | ||
dbName: some,db |
19 changes: 19 additions & 0 deletions
19
test/spec/initial-dns-seedlist-discovery/dbname-with-commas.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"uri": "mongodb+srv://test1.test.build.10gen.cc/some,db?replicaSet=repl0", | ||
"seeds": [ | ||
"test1.test.build.10gen.cc:27017", | ||
"test1.test.build.10gen.cc:27018" | ||
], | ||
"hosts": [ | ||
"localhost:27017", | ||
"localhost:27018", | ||
"localhost:27019" | ||
], | ||
"options": { | ||
"replicaSet": "repl0", | ||
"ssl": true | ||
}, | ||
"parsed_options": { | ||
"defaultDatabase": "some,db" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
test/spec/initial-dns-seedlist-discovery/dbname-with-commas.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
uri: "mongodb+srv://test1.test.build.10gen.cc/some,db?replicaSet=repl0" | ||
seeds: | ||
- test1.test.build.10gen.cc:27017 | ||
- test1.test.build.10gen.cc:27018 | ||
hosts: | ||
- localhost:27017 | ||
- localhost:27018 | ||
- localhost:27019 | ||
options: | ||
replicaSet: repl0 | ||
ssl: true | ||
parsed_options: | ||
defaultDatabase: some,db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters