[
https://issues.apache.org/jira/browse/RANGER-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
peng.jianhua updated RANGER-1934:
---------------------------------
Attachment: 0001-RANGER-1934-Optimize-the-init-method-in-BaseAuditHan.patch
> 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
>
> Attachments:
> 0001-RANGER-1934-Optimize-the-init-method-in-BaseAuditHan.patch
>
>
> 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)