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

add virtual Command::isUserManagementCommand

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 3.7.4
    • None
    • Internal Code
    • None
    • Fully Compatible
    • Platforms 2018-04-09

    Description

      commands.cpp currently maintains a whitelist of userManagementCommands strings.
      It's only used to implement CommandHelpers::isUserManagementCommand.

      Other intrinsic command properties like 'requiresAuth' etc are performed as virtual functions.
      isUserManagementCommand should follow that pattern.

      Then the isUserManagementCommand predicate stays correct by construction.

      Attachments

        Activity

          People

            billy.donahue@mongodb.com Billy Donahue
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: