|
Current master now prints:
./mongoc-ping "mongodb://user:pass@/tmp/mongodb-27017.sock/dbname"
|
2017/03/14 10:55:44.0694: [ 4503]: DEBUG: cluster: Authentication failed: Authentication failed.
|
Ping failure: Authentication failed.
|
And parsing the uri correctly (or incorrectly, as we should require the path to be encoded):
(gdb) p *cluster->uri
|
$3 = {
|
str = 0x55555577d6c0 "mongodb://user:pass@/tmp/mongodb-27017.sock/dbname",
|
hosts = 0x55555577dc10,
|
username = 0x55555577d700 "user",
|
password = 0x55555577d720 "pass",
|
database = 0x55555577d740 "dbname",
|
options = {
|
flags = 3,
|
len = 5,
|
padding = "\005", '\000' <repeats 118 times>
|
},
|
credentials = {
|
flags = 3,
|
len = 5,
|
padding = "\005", '\000' <repeats 118 times>
|
},
|
read_prefs = 0x55555577d760,
|
read_concern = 0x55555577d8f0,
|
write_concern = 0x55555577da00
|
}
|
(gdb) p *cluster->uri->hosts
|
$4 = {
|
next = 0x0,
|
host = "/tmp/mongodb-27017.sock", '\000' <repeats 41 times>,
|
host_and_port = "/tmp/mongodb-27017.sock", '\000' <repeats 47 times>,
|
port = 27017,
|
family = 1,
|
padding = {0x0,
|
0x0,
|
0x0,
|
0x0}
|
}
|
|