ExportXMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0, 9.1.0-rc1025
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • ALL
    • Server Security 2026-11-06
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The inline documentation of the `privileges` option in jstests/auth/lib/commands_lib.js states that the custom roles test runner will check "that having only a subset of the
      privileges causes an authorization failure". However, in jstests/auth/commands_user_defined_roles.js:runOneTest(), the runner checks each privilege individually but not any larger subsets of privileges.

      Either change the runOneTest() logic to test every subset of the full set of privileges for an auth failure, or update the documentation in commands_lib.js so developers know if they want to test a certain subset of privileges for an auth failure, they need to specify another testcase.

            Assignee:
            Sam Frank
            Reporter:
            Sam Frank
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: