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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.5.5
    • Security, Tools
    • None
    • ALL

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: