[SERVER-7934] Use of Principal* in auth code error prone, typically unnecessary. Created: 13/Dec/12  Updated: 11/Jul/16  Resolved: 18/Dec/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.3.2

Type: Improvement Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

The new auth code would be easier to work with if most users only dealt with PrincpalName and not with Principal*. AcquiredPrivilege could go away, which would also be good because it tends to end up with references to deleted Princpal objects.



 Comments   
Comment by auto [ 14/Dec/12 ]

Author:

{u'date': u'2012-12-12T21:10:42Z', u'email': u'schwerin@10gen.com', u'name': u'Andy Schwerin'}

Message: SERVER-7934 Have AuthorizationManager::getPrivilegeDocument take PrincipalName, not Principal*.
Branch: master
https://github.com/mongodb/mongo/commit/ea655580c27ada4ffe4cd62a660c356f25ff44f7

Comment by auto [ 14/Dec/12 ]

Author:

{u'date': u'2012-12-12T20:30:09Z', u'email': u'schwerin@10gen.com', u'name': u'Andy Schwerin'}

Message: SERVER-7934 Eliminate AcquiredPrivilege type.
Branch: master
https://github.com/mongodb/mongo/commit/079c9a78355677f170dc9da2cac05b6057881081

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