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

can't remove ill formed database

    • Type: Icon: Bug Bug
    • Resolution: Incomplete
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.0.4
    • Component/s: Admin, Shell
    • Labels:
      None
    • ALL

      if you create ill-named database (such as "admin sha" or "*") you can't rmeove them.

      How to do it :
      use admin sha
      db.dropDatabase()

      you get :
      "errmsg" : "

      { assertion: \"invalid db name: admin sha\", assertionCode: 13280, errmsg: \"db assertion failure\", ok: 0.0 }

      "

      if you try to remove it with a command :
      db.runCommand(

      {dropDatabase : "admin sha"}

      )

      { "ok" : 0, "errmsg" : "invalid params" }

      Creating such ill-named database should be forbidden (spaces in the name) but it should be possible to remove them.

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            kamaradclimber Grégoire Seux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: