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

Mongorestore cannot restore 2.4-schema users to a clean 2.6 system

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.5.5
    • Component/s: Security, Tools
    • Labels:
      None
    • ALL

      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.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: