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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.1.1
    • None
    • Shell
    • None
    • ALL

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: