-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: legacy-1.0.5
-
Component/s: None
This is connection string URI example case:
mongodb://localhost:27017,localhost:27018,localhost:27019/sampleDb?replicaSet=rs0&socketTimeoutMS=5000
When trying to parse this example using ConnectionString::parse, receive the following error:
"Cannot list multiple servers in URL without 'replicaSet' option"
But if I change socketTimeoutMS to connectTimeoutMS everything is OK then.
Moreover, when specifying
mongodb://localhost:27017/sampleDb?socketTimeoutMS=30000&w=majority
Getting strange error too:
"Bad digit "/" while parsing 27017/sampleDb?socketTimeoutMS=30000&w=majority"
Looks like something is bad with socketTimeoutMS option.
- depends on
-
SERVER-22383 mongo shell should permit mongodb:// URI without database name
- Closed
-
SERVER-22707 MongoDB shell's parsing of connection string uses incorrect regular expression
- Closed
-
SERVER-22714 Mongo shell URI parser should use the socketTimeoutMS option
- Closed