[SERVER-11390] createRole should require non-empty string for role name Created: 25/Oct/13  Updated: 11/Jul/16  Resolved: 26/Nov/13

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: 2.5.3
Fix Version/s: 2.5.5

Type: Bug Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Participants:

 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.



 Comments   
Comment by Githook User [ 26/Nov/13 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: SERVER-11390 Make createRole command enforce that role name is non-empty
Branch: master
https://github.com/mongodb/mongo/commit/41c1172aad09331e0cfe23e82642a46fada91fd8

Generated at Thu Feb 08 03:25:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.