At this time the user manager is returning it's own version of the user model. This makes the changes onto the user model non atomic and could corrupt the principal's cache as a result.
By returning a cloned model, we can restrict the cache update to the principal.setModel api.
- depends on
-
NXP-13315 Add Principal Caching in MultiTenantUserManager
- Resolved
- duplicates
-
NXP-18981 In-memory cache implementation in CacheService should not give direct access to instances of objects stored in cache
- Resolved
- is required by
-
NXP-18991 Add better error to diagnose random NPE in convert garbage collector
- Resolved