usersInfo command does not display users halfway through an upgrade from 2.4 to 2.6

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.5
    • Affects Version/s: 2.5.4
    • Component/s: Security, Usability
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      To reproduce, in a trivial case:

      • Bring up a 2.4 standalone
      • Insert a user in the admin database with the 'userAdminAnyDatabase' and 'clusterAdmin' roles
      • Restart the node as 2.6
      • Run the authSchemaUpgradeStep command once, so that the authSchemaVersion is 2.
      • Run 'usersInfo' on the admin database. It reports no users.

      In more complex cases (i.e multiple users on multiple databases), the command has the same issue of reporting no users when authSchemaVersion is 2. This is, however, the simplest possible reproducing case.

      Reproducing script attached.

        1. blank_users_info_repro.js
          1 kB
          sam.helman@10gen.com

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

              Created:
              Updated:
              Resolved: