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

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.2, 3.1.1
    • Component/s: Security, Sharding
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: