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

createRole should require non-empty string for role name

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

      > 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@mongodb.com Spencer Brody (Inactive)
            Reporter:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: