You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by pengjianhua <pe...@zte.com.cn> on 2017/09/12 02:09:42 UTC

Review Request 62233: Collection added to itself

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

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-1732
    https://issues.apache.org/jira/browse/RANGER-1732


Repository: ranger


Description
-------

Hi
In a recent github mirror, I've found suspicious code.
Branch: master
Path: agents-common/src/main/java/org/apache/ranger/plugin/audit/RangerMultiResourceAuditHandler.java
 32         Collection<AuthzAuditEvent> auditEvents = new ArrayList<>();
 ...
 42 
 43         @Override
 44         public void logAuthzAudits(Collection<AuthzAuditEvent> auditEvents) {
 45                 auditEvents.addAll(auditEvents);
 46         }
In Line 45, `auditEvents.addAll' should be `this.auditEvents.addAll'? This might not be an issue but I wanted to report just in case.
Thanks!


Diffs
-----

  agents-common/src/main/java/org/apache/ranger/plugin/audit/RangerMultiResourceAuditHandler.java 9990dd4c 


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


Testing
-------


Thanks,

pengjianhua


Re: Review Request 62233: Collection added to itself

Posted by Colm O hEigeartaigh <co...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62233/#review185167
-----------------------------------------------------------


Ship it!




Ship It!

- Colm O hEigeartaigh


On Sept. 12, 2017, 12:34 p.m., pengjianhua wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62233/
> -----------------------------------------------------------
> 
> (Updated Sept. 12, 2017, 12:34 p.m.)
> 
> 
> 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-1732
>     https://issues.apache.org/jira/browse/RANGER-1732
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Hi
> In a recent github mirror, I've found suspicious code.
> Branch: master
> Path: agents-common/src/main/java/org/apache/ranger/plugin/audit/RangerMultiResourceAuditHandler.java
>  32         Collection<AuthzAuditEvent> auditEvents = new ArrayList<>();
>  ...
>  42 
>  43         @Override
>  44         public void logAuthzAudits(Collection<AuthzAuditEvent> auditEvents) {
>  45                 auditEvents.addAll(auditEvents);
>  46         }
> In Line 45, `auditEvents.addAll' should be `this.auditEvents.addAll'? This might not be an issue but I wanted to report just in case.
> Thanks!
> 
> 
> Diffs
> -----
> 
>   agents-common/src/main/java/org/apache/ranger/plugin/audit/RangerMultiResourceAuditHandler.java 9990dd4c 
> 
> 
> Diff: https://reviews.apache.org/r/62233/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> pengjianhua
> 
>


Re: Review Request 62233: Collection added to itself

Posted by pengjianhua <pe...@zte.com.cn>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62233/
-----------------------------------------------------------

(Updated Sept. 12, 2017, 12:34 p.m.)


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-1732
    https://issues.apache.org/jira/browse/RANGER-1732


Repository: ranger


Description
-------

Hi
In a recent github mirror, I've found suspicious code.
Branch: master
Path: agents-common/src/main/java/org/apache/ranger/plugin/audit/RangerMultiResourceAuditHandler.java
 32         Collection<AuthzAuditEvent> auditEvents = new ArrayList<>();
 ...
 42 
 43         @Override
 44         public void logAuthzAudits(Collection<AuthzAuditEvent> auditEvents) {
 45                 auditEvents.addAll(auditEvents);
 46         }
In Line 45, `auditEvents.addAll' should be `this.auditEvents.addAll'? This might not be an issue but I wanted to report just in case.
Thanks!


Diffs
-----

  agents-common/src/main/java/org/apache/ranger/plugin/audit/RangerMultiResourceAuditHandler.java 9990dd4c 


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


Testing
-------


Thanks,

pengjianhua


Re: Review Request 62233: Collection added to itself

Posted by Qiang Zhang <zh...@zte.com.cn>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62233/#review185148
-----------------------------------------------------------


Ship it!




Ship It!

- Qiang Zhang


On 九月 12, 2017, 2:09 a.m., pengjianhua wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62233/
> -----------------------------------------------------------
> 
> (Updated 九月 12, 2017, 2:09 a.m.)
> 
> 
> 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-1732
>     https://issues.apache.org/jira/browse/RANGER-1732
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Hi
> In a recent github mirror, I've found suspicious code.
> Branch: master
> Path: agents-common/src/main/java/org/apache/ranger/plugin/audit/RangerMultiResourceAuditHandler.java
>  32         Collection<AuthzAuditEvent> auditEvents = new ArrayList<>();
>  ...
>  42 
>  43         @Override
>  44         public void logAuthzAudits(Collection<AuthzAuditEvent> auditEvents) {
>  45                 auditEvents.addAll(auditEvents);
>  46         }
> In Line 45, `auditEvents.addAll' should be `this.auditEvents.addAll'? This might not be an issue but I wanted to report just in case.
> Thanks!
> 
> 
> Diffs
> -----
> 
>   agents-common/src/main/java/org/apache/ranger/plugin/audit/RangerMultiResourceAuditHandler.java 9990dd4c 
> 
> 
> Diff: https://reviews.apache.org/r/62233/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> pengjianhua
> 
>