[ 
https://issues.apache.org/jira/browse/IGNITE-15345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17404898#comment-17404898
 ] 

Amelchev Nikita edited comment on IGNITE-15345 at 8/26/21, 4:08 AM:
--------------------------------------------------------------------

LGTM. Merged to the master.

[~PetrovMikhail], Thank you for the contribution.


was (Author: nsamelchev):
Merged to the master.

[~PetrovMikhail], Thank you for the contribution.

> Registration of remote event listener with null remote filter while security 
> is enabled fails with exception. 
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-15345
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15345
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Mikhail Petrov
>            Assignee: Mikhail Petrov
>            Priority: Major
>             Fix For: 2.12
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Exception with the following stack trace is thrown:
> {code:java}
> java.lang.NullPointerException: Parameter 'original' cannot be null.
>       at java.util.Objects.requireNonNull(Objects.java:228)
>       at 
> org.apache.ignite.internal.processors.security.AbstractSecurityAwareExternalizable.<init>(AbstractSecurityAwareExternalizable.java:60)
>       at 
> org.apache.ignite.internal.SecurityAwarePredicate.<init>(SecurityAwarePredicate.java:48)
>       at 
> org.apache.ignite.internal.IgniteEventsImpl.securityAwareRemoteFilter(IgniteEventsImpl.java:193)
>       at 
> org.apache.ignite.internal.IgniteEventsImpl.remoteListen(IgniteEventsImpl.java:136)
>       at 
> org.apache.ignite.internal.IgniteEventsImpl.remoteListen(IgniteEventsImpl.java:115)
>       at org.apache.ignite.TestClass.test(TestClass.java:34)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:498)
>       at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>       at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>       at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>       at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>       at 
> org.apache.ignite.testframework.junits.GridAbstractTest$7.run(GridAbstractTest.java:2432)
> {code}
> Reproducer:
> {code:java}
> public class TestClass extends AbstractSecurityTest {
>     /** */
>     @Test
>     public void test() throws Exception {
>         IgniteEx srv = startGridAllowAll("srv");
>         srv.events().remoteListen((uuid, e) -> true, null, 
> EVT_CACHE_OBJECT_PUT);
>     }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to