-
Type: Bug
-
Resolution: Duplicate
-
Priority: Trivial - P5
-
Affects Version/s: None
-
Component/s: CLI Module
-
None
-
Not Needed
Enterprise [mongos]> db.system.users.find()
Uncaught MongoError: user is not allowed to do action [find] on [admin.system.users
I'm guessing this is a sanitised version of a raw error message and the end square bracket has just been stripped out.
This also appears using mongosh against an M0 cluster
Enterprise atlas-plzu8u-shard-0 [primary]> db.system.users.find()
Uncaught MongoError: user is not allowed to do action [find] on [local.system.users
But is fine with the legacy shell due to the more standard error format
MongoDB Enterprise atlas-plzu8u-shard-0:PRIMARY> db.system.users.find() Error: error: { "ok" : 0, "errmsg" : "user is not allowed to do action [find] on [myFirstDatabase.system.users]", "code" : 8000, "codeName" : "AtlasError" }
- duplicates
-
MONGOSH-685 Error message truncated for db.collection.insertOne()
- Closed