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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.0.0
    • 3.0.2, 3.1.1
    • Security, Sharding
    • Fully Compatible
    • ALL
    • Security 1 04/03/15

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: