[SERVER-12286] Fix incomplete error message in role graph initialization code Created: 07/Jan/14  Updated: 11/Jul/16  Resolved: 21/Jan/14

Status: Closed
Project: Core Server
Component/s: Security, Usability
Affects Version/s: 2.5.4
Fix Version/s: 2.5.5

Type: Task Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

in src/mongo/db/auth/authz_manager_external_state_local.cpp there is the error log message:

error() << "Could not generate role graph from admin.system.roles; "
                    "only system roles available. TODO EXPLAIN REMEDY. " << status;

We should remove the TODO and make the error message more useful.



 Comments   
Comment by Githook User [ 21/Jan/14 ]

Author:

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

Message: SERVER-12286 Fix incomplete error message in role graph initialization code
Branch: master
https://github.com/mongodb/mongo/commit/f65a0b814b8c77e3fbe90bca0c061c9b77f6acdb

Comment by Spencer Brody (Inactive) [ 21/Jan/14 ]

It looks to me like the only errors that could reasonably get here are ones thrown when querying admin.system.roles, for example if the disk device was unreachable. Given how little information we have about the nature of the error at this point, I'm not sure how much useful advice we can give for remedy steps. I'm leaning towards just removing the TODO and leaving the message otherwise as-is.

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