Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4002

Possible NullPointerException in LDAPUserGroupCallbackImpl

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Optional
    • Resolution: Won't Do
    • 7.11.1.GA
    • None
    • jBPM Core
    • None
    • PAM 7.11.1 + JBoss EAP 7.3.3

    • False
    • False
    • Workaround Exists
    • Hide

      Configure the LDAP related settings correctly.

      Show
      Configure the LDAP related settings correctly.
    • Hide

      1. Configure LDAP integration with PAM (https://access.redhat.com/solutions/4033931)
      2. Configure the LDAP base DN incorrectly intentionally - so later it will not return correct user data
      2. Create some process instances with human tasks
      3. In "Task Inbox" page in business-central, trigger the LDAP search operation via changing the "Status" filter on left side , receive the error message (attaching screenshot)
      4. Go to kie-server and check the server.log, find stacktraces like below

      2021-11-09 11:03:05,710 ERROR [org.kie.server.remote.rest.jbpm.QueryDataResource] (default task-2) Unexpected error: java.lang.NullPointerException
      	at org.jbpm.services.task.identity.LDAPUserGroupCallbackImpl.getGroupsForUser(LDAPUserGroupCallbackImpl.java:127)
      	at org.jbpm.kie.services.impl.query.preprocessor.PotOwnerTasksPreprocessor.preprocess(PotOwnerTasksPreprocessor.java:65)
      	at org.dashbuilder.dataset.DataSetManagerImpl.lookupDataSet(DataSetManagerImpl.java:150)
      	at org.jbpm.kie.services.impl.query.QueryServiceImpl.query(QueryServiceImpl.java:310)
      	at org.jbpm.kie.services.impl.query.QueryServiceImpl.query(QueryServiceImpl.java:250)
      	at org.kie.server.services.jbpm.QueryDataServiceBase.queryFiltered(QueryDataServiceBase.java:188)
      	at org.kie.server.services.jbpm.QueryDataServiceBase.queryFiltered(QueryDataServiceBase.java:146)
      	at org.kie.server.remote.rest.jbpm.QueryDataResource.runQueryFiltered(QueryDataResource.java:367)
      
      Show
      1. Configure LDAP integration with PAM ( https://access.redhat.com/solutions/4033931 ) 2. Configure the LDAP base DN incorrectly intentionally - so later it will not return correct user data 2. Create some process instances with human tasks 3. In "Task Inbox" page in business-central, trigger the LDAP search operation via changing the "Status" filter on left side , receive the error message (attaching screenshot) 4. Go to kie-server and check the server.log, find stacktraces like below 2021-11-09 11:03:05,710 ERROR [org.kie.server.remote. rest .jbpm.QueryDataResource] ( default task-2) Unexpected error: java.lang.NullPointerException at org.jbpm.services.task.identity.LDAPUserGroupCallbackImpl.getGroupsForUser(LDAPUserGroupCallbackImpl.java:127) at org.jbpm.kie.services.impl.query.preprocessor.PotOwnerTasksPreprocessor.preprocess(PotOwnerTasksPreprocessor.java:65) at org.dashbuilder.dataset.DataSetManagerImpl.lookupDataSet(DataSetManagerImpl.java:150) at org.jbpm.kie.services.impl.query.QueryServiceImpl.query(QueryServiceImpl.java:310) at org.jbpm.kie.services.impl.query.QueryServiceImpl.query(QueryServiceImpl.java:250) at org.kie.server.services.jbpm.QueryDataServiceBase.queryFiltered(QueryDataServiceBase.java:188) at org.kie.server.services.jbpm.QueryDataServiceBase.queryFiltered(QueryDataServiceBase.java:146) at org.kie.server.remote. rest .jbpm.QueryDataResource.runQueryFiltered(QueryDataResource.java:367)

    Description

      NullPointerException will be thrown in line#127 in LDAPUserGroupCallbackImpl.java when LDAP search return unexpected data .

      A proper error message is preferred (rather than 500 error code with "unexpected error: null" message)

      Attachments

        Activity

          People

            vmudadla@redhat.com Vani Haripriya Mudadla
            rhn-support-lywang Lyle Wang (Inactive)
            Antonio Fernandez Alhambra Antonio Fernandez Alhambra
            Antonio Fernandez Alhambra Antonio Fernandez Alhambra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: