Description
Problem Statement:
In RangerHiveAuthorizer, the Logger isDebugEnabled condition needs to be updated
else if (!result.getIsAllowed()) { if (!LOG.isDebugEnabled()) { String path = resource.getAsString(); LOG.debug(String.format("filterListCmdObjects: Permission denied: user [%s] does not have [%s] privilege on [%s]. resource[%s], request[%s], result[%s]", user, request.getHiveAccessType().name(), path, resource, request, result)); }
here in above code the condition check is "!LOG.isDebugEnabled()" and log is logged at Debug level which will never get log.
Solution:
The condition "if (!LOG.isDebugEnabled())" should be replaced by "if (LOG.isDebugEnabled())"
Attachments
Attachments
Issue Links
- links to