[SERVER-821] Empty "DB name" created by http interface breaks "show dbs" on shell Created: 23/Mar/10  Updated: 12/Jul/16  Resolved: 29/Mar/10

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 1.3.4
Fix Version/s: 1.4.1, 1.5.0

Type: Bug Priority: Major - P3
Reporter: Diego Sana Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

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": [

{ "$err" : "db name is empty" }

],

"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.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 26/Apr/10 ]

in a release

Comment by auto [ 29/Mar/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: catch empty db names early SERVER-821
http://github.com/mongodb/mongo/commit/d979fd7da676eb255294bccaf9e18b7599ba169c

Comment by auto [ 29/Mar/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: catch empty db names early SERVER-821
http://github.com/mongodb/mongo/commit/b5bc2adc903d10ef4c3818c079d94d77bd87d0df

Generated at Thu Feb 08 02:55:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.