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

dumpauth.js uses ambiguous --db/--collection args

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:

      Description

      In dumpauth.js:

      x = runMongoProgram( "mongodump",
                           "--db", baseName,
                           "--authenticationDatabase=admin",
                           "-u", "testuser",
                           "-p", "testuser",
                           "-h", "127.0.0.1:"+m.port,
                           "--collection", "testcol" );
      

      This is incorrect because the test is actually writing its test data into the "admin" database, and the "baseName" database is never actually created.
      The test collection itself is actually named baseName+".testcol".

        Attachments

          Activity

            People

            Assignee:
            spencer Spencer Brody (Inactive)
            Reporter:
            mpobrien Michael O'Brien
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: