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

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.1, 2.3.0
    • Component/s: Tools
    • Labels:
      None
    • Operating System:
      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

            Assignee:
            spencer Spencer Brody (Inactive)
            Reporter:
            renctan Randolph Tan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: