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

Getting need to login error when trying to restore a single database

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.2.0
    • 2.2.1, 2.3.0
    • Tools
    • None
    • ALL

    Description

      Server complains that user needs to login even if it specified the right username and password for the database. Offending code in createIndex (@restore.cpp):

      BSONObj err = conn().getLastErrorDetailed(false, false, _w);

      The problem with the code above is getLastErrorDetailed would always run the command against the admin database, and if the user specified a database (through the -d parameter) other than admin, then this will not work.

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: