-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Minor Change
-
ALL
-
The renameCollection command must be run on the admin database through mongod. When connected to mongos, however, the renameCollection command may be run on any database. We should make this consistent, probably by making it so that even on mongos renameCollection must be run on the admin database.
Tested against githash c70a72b151fcfab26d0db5e8ceeb7c04a96ce449
- is duplicated by
-
SERVER-9475 renameCollection is marked as admin only command but can be running without authenticating as admin
- Closed
- is related to
-
SERVER-9233 Add jstests for role-based access control
- Closed