Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15345

Registration of remote event listener with null remote filter while security is enabled fails with exception.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.12
    • 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

          Activity

            People

              PetrovMikhail Mikhail Petrov
              PetrovMikhail Mikhail Petrov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m