[SERVER-12541] Mongorestore cannot restore 2.4-schema users to a clean 2.6 system Created: 29/Jan/14 Updated: 10/Dec/14 Resolved: 05/Mar/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Security, Tools |
| Affects Version/s: | 2.5.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
If you mongodump a 2.4 system with user data, then try to mongorestore that to a clean 2.6 system with no users, it will fail saying that you're trying to restore users with an outdated schema. This is because {getParameter:1, authSchemaVersion:1}reports upgraded 2.6 systems with users and clean 2.6 systems with no users as the same schema version. We should be able to detect when the system we're talking to has v3 authorization schema only because it has no users or roles yet, and allow the restore to proceed with v2.4 schema users. |
| Comments |
| Comment by Spencer Brody (Inactive) [ 05/Mar/14 ] |
|
This worked in 2.6.0-rc0, but won't work in 2.6.0-rc1 or later, by design. |
| Comment by Spencer Brody (Inactive) [ 05/Mar/14 ] |
|
This ticket contradicts |
| Comment by Githook User [ 07/Feb/14 ] |
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}Message: |
| Comment by Githook User [ 06/Feb/14 ] |
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}Message: |
| Comment by Githook User [ 29/Jan/14 ] |
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}Message: There are some known caveats: (2) To restore 2.4 users to a 2.6 system that has never had any users added, you |