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

Mongo shell should check the validity of the db name for "use <dbname">

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.1.1
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • ALL

      > use bash.org
      switched to db bash.org
      > db.quotes.save(

      {x:"hi"}

      );
      Mon Feb 20 08:25:25 uncaught exception: error

      { "$err" : "bad or malformed command request?", "code" : 13530 }

      The "use" command should check if the database name is a valid name otherwise further commands will raise errors that are not directly related to the real problem (n00b confusion).

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            yet@gmx.de Andreas Jung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: