Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Fix NPE on remote listener registration with null remote filter and security enabled.
-
Release Notes Required
Description
Exception with the following stack trace is thrown:
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)
Reproducer:
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); } }
Attachments
Issue Links
- relates to
-
IGNITE-13228 Remote filter of IgniteEvents has to run with appropriate SecurityContext.
- Resolved
- links to