George Huang created HDDS-6948:
----------------------------------
Summary:
MultiTenantAccessAuthorizerRangerPlugin.java#deletePolicyByName should log and
exit if getAccessPolicyByName returns null
Key: HDDS-6948
URL: https://issues.apache.org/jira/browse/HDDS-6948
Project: Apache Ozone
Issue Type: Bug
Components: Ozone Manager
Environment: In the code block listed, it is possible that
"AccessPolicy policy = getAccessPolicyByName(policyName);" may return null. In
this case, delete policy should log this case and exit instead still trying to
delete a null policy.
Reporter: George Huang
Assignee: George Huang
|@Override|
||public void deletePolicyByName(String policyName) throws IOException {|
||AccessPolicy policy = getAccessPolicyByName(policyName);|
||String policyID = policy.getPolicyID();|
||LOG.debug("policyID is: {}", policyID);|
||deletePolicyById(policyID);|
||}|
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]