createRole should require non-empty string for role name

XMLWordPrintableJSON

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

      > 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.

            Assignee:
            Spencer Brody (Inactive)
            Reporter:
            Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: