[SERVER-8280] copydb command always requires credentials if the destination mongod is running with authentication, even if the source is running without it Created: 22/Jan/13 Updated: 11/Jul/16 Resolved: 19/Mar/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin, Security |
| Affects Version/s: | 2.0.7, 2.2.2, 2.4.0-rc2 |
| Fix Version/s: | 2.5.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Robert Miyashiro | 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 | ||||||||||||||||||||
| Steps To Reproduce: | 1. Start a mongod without --auth. This will be the 'source'. |
||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
We are seeing an issue where a copydb command always fails in the following situation: 1. The source mongod is running WITHOUT authentication. When the command is issued, it returns immediately with an empty error message like so: > db.copyDatabase('fromdb', 'todb', 'from.example.com:10000') { "errmsg" : "", "ok" : 0 }If we add dummy credentials to the 'fromdb' database and use those, the copy executes successfully. It would seem that in order for this command to work without credentials BOTH the source and destination need to be running without the --auth flag. Based on the documentation, credentials should only be required if the source is running with --auth. |
| Comments |
| Comment by auto [ 19/Mar/13 ] |
|
Author: {u'date': u'2013-03-19T18:59:41Z', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}Message: |
| Comment by Eric Milkie [ 19/Mar/13 ] |
|
This broke the copydb test on the subscription builders. |
| Comment by auto [ 18/Mar/13 ] |
|
Author: {u'date': u'2013-03-15T21:15:27Z', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}Message: |