-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.2.5
-
Component/s: None
-
None
When mongod is started with the --auth flag:
mongo(main)> client.database.users.info('nonexistent') DEBUG -- : MONGODB | localhost:27017 | admin.usersInfo | STARTED | {"usersInfo"=>"nonexistent"} DEBUG -- : MONGODB | localhost:27017 | admin.usersInfo | FAILED | not authorized on admin to execute command { usersInfo: "nonexistent" } (13) | 0.000906s NoMethodError: undefined method `each' for nil:NilClass from ../mongo-ruby-driver/lib/mongo/operation/result.rb:149:in `each'