[SERVER-13588] Shell prints startup warning when auth enabled Created: 15/Apr/14  Updated: 11/Jul/16  Resolved: 21/Apr/14

Status: Closed
Project: Core Server
Component/s: Logging, Security, Shell
Affects Version/s: 2.6.0
Fix Version/s: 2.6.2, 2.7.0

Type: Bug Priority: Minor - P4
Reporter: Andrew Ryder (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-13997 Mongo shell authorization error at st... Closed
Related
is related to SERVER-9627 Startup Warning error shown when conn... Closed
is related to SERVER-8531 Don't print startup warnings error wh... Closed
Operating System: ALL
Backport Completed:
Steps To Reproduce:

Start a mongod with --keyFile X and run a shell locally with no parameters. There are various other permutations, with users set up in DBs other than admin.

Participants:

 Description   

When auth is enabled, the shell prints a startup warning complaining that the user does not have permission to access the admin database.

connecting to: test
Error while trying to show server startup warnings: not authorized on admin to execute command { getLog: "startupWarnings" }



 Comments   
Comment by Githook User [ 15/May/14 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-13588 Fix regression in supression of startup warning when unauthorized
(cherry picked from commit 177d92b10d8447eb09cca8c6bd8eed0d9f04bc54)
Branch: v2.6
https://github.com/mongodb/mongo/commit/adc534fcdd0425f689954f44a940f6416e46673a

Comment by Githook User [ 21/Apr/14 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-13588 Fix regression in supression of startup warning when unauthorized
Branch: master
https://github.com/mongodb/mongo/commit/177d92b10d8447eb09cca8c6bd8eed0d9f04bc54

Generated at Thu Feb 08 03:32:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.