Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Duplicate
-
None
-
None
-
None
-
Correctness - Consistency
-
Normal
-
Low Hanging Fruit
-
Code Inspection
-
All
-
None
Description
CIDR permission cache code:
/** * Invalidate a role from CIDR permissions cache * @param roleName role for which to invalidate the cache * @return boolean returns true if given role found in the cache and invalidated, otherwise returns false */ public boolean invalidateCidrPermissions(String roleName) { if (cache.getIfPresent(roleName) == null) return false; invalidate(RoleResource.role(roleName)); return true; }
passes String role name to the cache and if it returns null it just returns false. It will always return null because cache expects objects of type RoleResource.
Attachments
Attachments
Issue Links
- duplicates
-
CASSANDRA-18805 Upgrade caffeine to 3.1.8 and fix CIDR permissions cache invalidation
- Resolved