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

Typo in read_write_concern_defaults_application.js

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-11-28

    Description

      While reading read_write_concern_defaults_application.js, I happened to notice that it creates roles "foo" and "bar", grants role "bar" to role "foo", and then tests revokeRolesFromRole by revoking the "foo" role from itself!

      In other words, the "foo" role is revoked from the "foo" role. The test was probably intended to revoke "bar" role from the "foo" role. The test still fulfills its purpose but it doesn't test revokeRolesFromRole as it's used in the wild.

      Attachments

        Activity

          People

            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: