[SERVER-40296] Do not fassert that object returned from InvalidatingLRUCache is valid Created: 22/Mar/19  Updated: 29/Oct/23  Resolved: 26/Mar/19

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

Type: Bug Priority: Major - P3
Reporter: Spencer Jackson Assignee: Jonathan Reams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2019-04-08
Participants:
Linked BF Score: 7

 Description   

The InvalidatingLRUCache contains valid objects. However, once an object has been returned, it can be invalidated at any point. This means that it is unsafe to fassert that it is valid. In the past, fassert 17003 was evaluated inside of the mutex which excluded invalidation. It should now be either removed, or moved to a place where the condition is maintained.



 Comments   
Comment by Githook User [ 26/Mar/19 ]

Author:

{'name': 'Jonathan Reams', 'username': 'jbreams', 'email': 'jbreams@mongodb.com'}

Message: SERVER-40296 Allow returning invalid users from authorization manager
Branch: master
https://github.com/mongodb/mongo/commit/43e089c8cea5d0d88b37ec59d3943d10bcbd0c9f

Generated at Thu Feb 08 04:54:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.