ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qiang Zhang <zhangqia...@zte.com.cn>
Subject Review Request 63534: RANGER-1870:Modify the logic for buildUnixUserList and parseMembers method in UnixUserGroupBuilder class
Date Fri, 03 Nov 2017 02:22:45 GMT

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

Review request for ranger, Ankita Sinha, Don Bosco Durai, Colm O hEigeartaigh, Gautam Borad,
Madhan Neethiraj, pengjianhua, Ramesh Mani, Selvamohan Neethiraj, sam  rome, and Velmurugan
Periasamy.


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


Repository: ranger


Description
-------

Modify the logic for buildUnixUserList and parseMembers method in UnixUserGroupBuilder class

1.In the buildUnixUserList method:
int len = tokens.length;
if (len = 3) groupId = tokens [3]; case ArrayIndexOutOfBoundsException.
2.Another similar error in the parseMembers method:
String[] tokens = line.split(":");
if (tokens.length = 2) String groupId = tokens [2]; case ArrayIndexOutOfBoundsException.


Diffs
-----

  ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java 045fe3f



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


Testing
-------


Thanks,

Qiang Zhang


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