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

Running user commands with auth schema version as wrong type in db gives misleading error message

    • Fully Compatible
    • ALL

      To reproduce:

      • Bring up a 2.6 node
      • Insert a user
      • Manually set the admin.system.version doc to have
        { currentVersion: '3' }
      • Run an authentication command, i.e usersInfo

      The error message is a little misleading - it reports that the current schema version is 0, instead of the wrong type. It is conceivable that while running a downgrade someone could mistakenly set the value to a string type and get this error.

      A js script to reproduce the error is attached.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            sam.helman@10gen.com sam.helman@10gen.com
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: