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

Windows 1.8.1/1.8.2-rc3 32-bit mongo Doesn't Parse Username and Password Options Correctly

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.8.1
    • Component/s: Shell
    • None
    • Environment:
      Windows Server 2008 R2 64-bit AMI from AWS, 32-bit versions of 1.8.1 and 1.8.2-rc3
    • Windows

      When I use the 32-bit Windows client against my auth-mode server I can't get it to connect from the command line. I can work around the problem by not trying to specify a username and password from the command line and then calling db.auth() once the shell starts up. However, I bet this is confusing for users. This is possibly related to SERVER-3238.

      PS C:\Program Files\mongodb-win32-x86_64-1.8.1\bin> .\mongo.exe db.mycompany.com:27017/jared_test -u jared -p jared
      MongoDB shell version: 1.8.1
      connecting to: db.mycompany.com:27017/jared_test
      > show collections
      jared
      system.indexes
      system.users
      > exit
      bye

      PS C:\Program Files\mongodb-win32-i386-1.8.1\bin> .\mongo.exe db.mycompany.com:27017/jared_test -u jared -p jared
      MongoDB shell version: 1.8.1
      Enter password:
      connecting to: db.mycompany.com:27017/jared_test
      Fri Jun 10 02:17:06 file [jared] doesn't exist
      failed to load: jared

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            jared Jared D. Cottrell
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: