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

mongo shell: allow users to show dbs (on <4.0 versions of the server) without the listDatabases privilege

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.5, 4.1.5
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • Minor Change
    • v4.0
    • Security 2018-10-22

      Related to SERVER-32942

      That ticket changed the behavior of show collections to : If the shell obtains an Unauthorized error, which it would if it ran the listCollections command against an older version of the server which didn't respect authorizedCollections, it will attempt to parse out the set of collections it has been granted privileges on from the output of connectionStatus.

      The same pattern should be applied to show dbs (listDatabases)

            Assignee:
            sara.golemon@mongodb.com Sara Golemon
            Reporter:
            alyson.cabral@mongodb.com Alyson Cabral (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: