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)