Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-9194

When querying for tasks by candidate user a group query is executed multiple times

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. configure an engine with LDAP
      2. execute a TaskQuery taskService.createTaskQuery().taskCandidateUser("foo").list()

      Observed Behavior:
      The guards for creating the SQL statements are based on the methods TaskQueryImpl#getCandidateGroups().

      The method TaskQueryImpl#getCandidateGroups() calls #getGroupsForCandidateUser(). This method queries the identity provider for the candidate user's groups, in case of LDAP. The result is not cached in the query object, so when the Mybatis mapping calls TaskQueryImpl#getCandidateGroups() a second time, it will ask LDAP a second time and so on.

      Expected Behavior:
      The identity provider is called only once.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              nikola.koevski Nikola Koevski
              roman.smirnov Roman Smirnov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce