Expected: A user with the dbAdmin role should be authorized to run the convertToCapped command.
Actual: convertToCapped invokes cloneCollectionAsCapped, which raises the auth error below.
{
"ok" : 0,
"errmsg" : "cloneCollectionAsCapped failed: { ok: 0.0, errmsg: \"not authorized
on roles_commands_2 to execute command { cloneCollectionAsCapped: \"toCapped\",
toCollection: \"tmp.convertToCapped.toCapped\", size: 1000....\", code: 13 }"
}
This is a regression from v2.4.6.
- is related to
-
SERVER-9233 Add jstests for role-based access control
-
- Closed
-