You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "George Huang (Jira)" <ji...@apache.org> on 2022/06/26 23:28:00 UTC

[jira] [Created] (HDDS-6948) MultiTenantAccessAuthorizerRangerPlugin.java#deletePolicyByName should log and exit if getAccessPolicyByName returns null

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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org