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
    • Fully Compatible
    • ALL
    • Security 1 04/03/15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None