peng.jianhua created RANGER-1934:
------------------------------------
Summary: Optimize the init method in BaseAuditHandler class to
avoid ArrayIndexOutOfBoundsException
Key: RANGER-1934
URL: https://issues.apache.org/jira/browse/RANGER-1934
Project: Ranger
Issue Type: Bug
Components: audit
Affects Versions: master
Reporter: peng.jianhua
Assignee: peng.jianhua
Priority: Minor
Fix For: master
Optimize the init method in BaseAuditHandler class to avoid
ArrayIndexOutOfBoundsException
The follow in the init method " List<String> tokens =
MiscUtil.toArray(propPrefix, ".");
String finalToken = tokens.get(tokens.size() - 1);".
in the init method we should add " if (tokens.size() > 1)" to avoid
ArrayIndexOutOfBoundsException.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)