-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
Affects Version/s: None
-
Component/s: API, Implementation
-
Environment:C++ driver from 2.4.9 source (on Windows, though that shouldn't matter for this item). The 2.5.4 source does not look to be any different.
The C++ driver does not accept connection strings that are URIs from http://docs.mongodb.org/manual/reference/connection-string/
We have configuration that is shared between apps that use the C++ driver and the C# driver. Because of this issue our work around would be to double-configure Mongo once for the C++ driver and once for everything else.
Unfortunately, there seems to be no documentation on what the C++ driver currently accepts. A google of "mongodb C++ driver connection string" gives this stack overflow question http://stackoverflow.com/questions/14629281/c-driver-mongodb-connection-options that basically says it's undocumented.
If MongoDB is not going to get the C++ driver up to snuff with the rest of the drivers, then please at least document how to translate from the URI syntax to something the C++ driver can understand.
- is depended on by
-
TOOLS-6 mongodump crashes with malformed --host argument
- Closed
- is duplicated by
-
CXX-272 Connection strings parsing changes from v1.6 to v1.8
- Closed
-
CXX-177 Support MongoDB URIs
- Closed
-
CXX-252 C++ Driver should support standard connection string format
- Closed
- related to
-
SERVER-13867 Centralize validation of connection strings for server and tools
- Closed