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

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.10.0, 7.8.8, 7.9.2, 7.10.0-alpha2
    • Component/s: engine
    • Labels:
      None

      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.

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development