[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:
Depends
depends on SERVER-22383 mongo shell should permit mongodb:// ... Closed
depends on SERVER-22707 MongoDB shell's parsing of connection... Closed
depends on SERVER-22714 Mongo shell URI parser should use the... Closed
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.
Couldn't find way to change it.

Generated at Wed Feb 07 22:00:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.