[ 
https://issues.apache.org/jira/browse/HDDS-6948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

George Huang closed HDDS-6948.
------------------------------

> MultiTenantAccessAuthorizerRangerPlugin#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
>             Fix For: 1.3.0
>
>
> |@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.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to