Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-821

Empty "DB name" created by http interface breaks "show dbs" on shell

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.1, 1.5.0
    • Affects Version/s: 1.3.4
    • Component/s: Shell
    • Labels:
      None

      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.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            diegomsana Diego Sana
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: