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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Duplicate
    • Affects Version/s: 3.0.0, 3.0.1
    • Fix Version/s: None
    • Component/s: mongodump
    • Labels:
    • 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

      Description

      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
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ygbr Ygor Lemos
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: