Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12160

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.5, 4.0.5
    • Component/s: manual, Server
    • Labels:
      None

      Description

      Description

      Description:

      This enables mongo.getDBs() and thereby `show databases` to return an inferred set of databases using the user's permissions if they are speaking to a pre-4.0 mongod.

      Engineering Ticket Description:

      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)

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kay.kim Kay Kim (Inactive)
              Reporter:
              kay.kim Kay Kim (Inactive)
              Participants:
              Last commenter:
              Githook User Githook User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                2 years, 43 weeks ago
                Date of 1st Reply: