Jacek Lewandowski created CASSANDRA-18864:
---------------------------------------------
Summary: CIDR permission cache probably does not work
Key: CASSANDRA-18864
URL: https://issues.apache.org/jira/browse/CASSANDRA-18864
Project: Cassandra
Issue Type: Bug
Reporter: Jacek Lewandowski
CIDR permission cache code:
{code:java}
/**
* 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;
}
{code}
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}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]