[
https://issues.apache.org/jira/browse/HDDS-6948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-6948:
---------------------------------
Labels: pull-request-available (was: )
> 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
> Priority: Major
> Labels: pull-request-available
>
> |@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]