-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: Legacy C++ Implementation
-
Component/s: None
-
None
The tools just blindly append the value for "port" at the end of "host" even though we kind of treat it like a connection string:
-h [ --host ] arg mongo host to connect to ( <set
name>/s1,s2 for sets)
$ ./mongoimport --host localhost:30001 --port 30001 2013-09-16T14:58:54.673-0400 getaddrinfo("localhost:30001") failed: nodename nor servname provided, or not known couldn't connect to [localhost:30001:30001] couldn't connect to server $ ./mongoimport --host localhost:30001 // connects fine to mongod running on localhost:30001
- depends on
-
SERVER-13867 Centralize validation of connection strings for server and tools
- Closed
-
SERVER-8510 Move command line parsing into MONGO_INITIALIZERS and support JSON config files
- Closed
- is related to
-
SERVER-11661 Tools: --port prints stack trace on invalid port
- Closed
- related to
-
SERVER-13867 Centralize validation of connection strings for server and tools
- Closed