[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: { ], "total_rows" : 1 , 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 |
| Comment by auto [ 29/Mar/10 ] |
|
Author: {'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: catch empty db names early |