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

Mongo shell lets you switch to a database named ""

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.4
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows
    • Operating System:
      ALL

      Description

      The shell will let you set the current database to "". Illustration below:

      > use
      switched to db
      > db

      > show collections
      Tue Nov 30 17:33:48 uncaught exception: error:

      { "$err" : "db name can't be empty", "code" : 13075 }

      The use command without a parameter should display an error and not change the current database.

        Attachments

          Activity

            People

            Assignee:
            dwight_10gen Dwight Merriman
            Reporter:
            zippy1981 Justin Dearing
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: