ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pengjianhua <peng.jian...@zte.com.cn>
Subject Review Request 64677: RANGER-1934:Optimize the init method in BaseAuditHandler class to avoid ArrayIndexOutOfBoundsException
Date Mon, 18 Dec 2017 07:47:39 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64677/
-----------------------------------------------------------

Review request for ranger, Alok Lal, Ankita Sinha, Don Bosco Durai, Colm O hEigeartaigh, Gautam
Borad, Madhan Neethiraj, Ramesh Mani, Selvamohan Neethiraj, Velmurugan Periasamy, and Qiang
Zhang.


Bugs: RANGER-1934
    https://issues.apache.org/jira/browse/RANGER-1934


Repository: ranger


Description
-------

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.


Diffs
-----

  agents-audit/src/main/java/org/apache/ranger/audit/provider/BaseAuditHandler.java b095000



Diff: https://reviews.apache.org/r/64677/diff/1/


Testing
-------

Tested it.


Thanks,

pengjianhua


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message