Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-682

Mongodump no longer asks for password when used with -p without args

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 3.0.0, 3.0.1
    • Component/s: mongodump
    • Environment:
      Mac OSX 10.10.3
      Tested both with MongoDB 3.0 and 3.0.1 installed using latest version from brew
      Server running 2.6.8 on Compose.io
    • v3.0

      mongodump default behaviour on 2.6.X was to ask for the password in interactive mode on the shell when you pass -p without arguments, now, since 3.0 it gives an error even though it clearly states that the old behaviour still works on the docs.

      Command:

      mongodump -h SERVER:PORT -d DATABASE -u USER -p --dumpDbUsersAndRoles -o OUTPUTDIR
      

      On all 2.6.X it asked for the password on the terminal interactively and proceed to the dump.

      Since 3.0.0 it gives the following error:

      2015-03-23T15:00:33.996-0300	error parsing command line options: expected argument for flag `-p, --password'
      2015-03-23T15:00:33.996-0300	try 'mongodump --help' for more information
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            ygbr@mac.com Ygor Lemos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: