[CXX-846] Connection string URI parsing is no correct Created: 16/Feb/16 Updated: 27/May/22 Resolved: 19/Oct/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | legacy-1.0.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Pyslaru Vlad | Assignee: | Backlog - CXX Driver Team |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | legacy-cxx | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Server Compat: | 3.2, 3.3 | ||||||||||||||||
| Description |
|
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. |
| Comments |
| Comment by David Golden [ 19/Oct/16 ] |
|
We don't plan to allocate resources to this work for the legacy C++ driver. Closing as "won't fix". |
| Comment by Pyslaru Vlad [ 16/Feb/16 ] |
|
Sorry, but correct version is 1.0.5. |