You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Madhan Neethiraj (Jira)" <ji...@apache.org> on 2023/03/04 09:53:00 UTC
[jira] [Created] (RANGER-4121) NPE in security-zone update validation
Madhan Neethiraj created RANGER-4121:
----------------------------------------
Summary: NPE in security-zone update validation
Key: RANGER-4121
URL: https://issues.apache.org/jira/browse/RANGER-4121
Project: Ranger
Issue Type: Bug
Components: Ranger
Reporter: Madhan Neethiraj
Assignee: Madhan Neethiraj
When a non-admin user attempts to update a security-zone with null description, the API fails with NPE due to the following line in SecurityZoneREST.java:
{code:java}
} else if (!securityZone.getDescription().equals(existingSecurityZone.getDescription())) { {code}
This should be updated to use Objects.equals() to avoid NPE.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)