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

createRole should require non-empty string for role name

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.5
    • 2.5.3
    • Security
    • ALL

    Description

      > db.runCommand(

      { createRole: "", privileges: [], roles: [] }

      );

      Expect command to fail, but instead role is created.

      Command should be consistent with 2.4, which does not allow empty strings for usernames, and also with the createUser command, which does not allow empty strings either.

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: