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

shell should validate database name passed in command line

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.0
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • ALL

      Aaron-Staples-MacBook-Pro:mongo aaron$ mongo *
      MongoDB shell version: 1.8.2
      connecting to: *
      > db.c.save({})
      > show dbs

      • 0.078125GB
        local (empty)
        >

      Apparently a db named '*' isn't allowed - we should validate the db name passed to the shell to prevent this situation.

            Assignee:
            brandon Brandon Diamond
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: