[SERVER-7182] Getting need to login error when trying to restore a single database Created: 27/Sep/12 Updated: 11/Jul/16 Resolved: 28/Sep/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | 2.2.0 |
| Fix Version/s: | 2.2.1, 2.3.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Randolph Tan | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Participants: | |||||
| 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):
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. |
| Comments |
| Comment by auto [ 02/Oct/12 ] |
|
Author: {u'date': u'2012-09-28T14:43:13-07:00', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}Message: |
| Comment by auto [ 02/Oct/12 ] |
|
Author: {u'date': u'2012-09-28T13:01:07-07:00', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}Message: |
| Comment by auto [ 28/Sep/12 ] |
|
Author: {u'date': u'2012-09-28T14:43:13-07:00', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}Message: |
| Comment by auto [ 28/Sep/12 ] |
|
Author: {u'date': u'2012-09-28T13:01:07-07:00', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}Message: |