Details
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)
Attachments
Issue Links
- depends on
-
SERVER-37526 IDLify listDatabases command
-
- Closed
-
-
SERVER-37551 Add {authorizedDatabases:bool} param to {listDatabases} command.
-
- Closed
-
- is documented by
-
DOCS-12160 Docs for SERVER-36262: mongo shell: allow users to show dbs (on <4.0 versions of the server) without the listDatabases privilege
-
- Closed
-
- is related to
-
SERVER-35638 Shell auto-completion blocks when listCollection is waiting for locks
-
- Closed
-
- related to
-
SERVER-32942 mongo shell: for users authorized to certain namespace, make discovery easy
-
- Closed
-