NoMethodError when usersInfo is called with server auth enabled and nonexistent username

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 2.2.6
    • Affects Version/s: 2.2.5
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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'
      

            Assignee:
            Emily Stolfo (Inactive)
            Reporter:
            Emily Stolfo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: