I am using apache to proxy requests from url https://mydomain.com/mongo to localhost:28017, where mongo's http interface is listening. When i visit the url https://mydomain.com/mongo/ (with the slash in the end) the page outputs this:
{
"offset" : 0,
"rows": [
],
"total_rows" : 1 ,
"query" : {} ,
"millis" : 0
}
A db with an empty name is beeing created by visiting that url, and then if i try "show dbs" on mongo shell i get this assertion:
assert: assert failed : listDatabases failed:
{ "errmsg" : "assertion: db name is empty", "ok" : 0 }Wed Mar 24 02:23:38 JS Error: uncaught exception: assert failed : listDatabases failed:
{ "errmsg" : "assertion: db name is empty", "ok" : 0 }If i restart mongo, the error goes away.