Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17529

Can't list collections when mongos is running 3.0 and config servers are running 2.6 and auth is on

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.2, 3.1.1
    • Affects Version/s: 3.0.0
    • Component/s: Security, Sharding
    • Labels:
    • Fully Compatible
    • ALL
    • Security 1 04/03/15

      In 3.0 we introduced the listCollections command and an associated privilege to run it, replacing the old way of listing collections of querying system.namespaces directly. The problem is that mongoses load what privileges a user should have from the config servers, so if the config servers are still running 2.6, they will not provide the listCollections privilege. This means that future listCollections requests to a 3.0 mongos will fail with an "unauthorized" error.

            andreas.nilsson Andreas Nilsson
            spencer@mongodb.com Spencer Brody (Inactive)
            0 Vote for this issue
            5 Start watching this issue