shell should validate database name passed in command line

XMLWordPrintableJSON

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

      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 Diamond (Inactive)
              Reporter:
              Aaron Staple (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: