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

        roman.smirnov Smirnov Roman created issue -
        roman.smirnov Smirnov Roman made changes -
        Field Original Value New Value
        Assignee Smirnov Roman [ roman.smirnov ]
        roman.smirnov Smirnov Roman made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        roman.smirnov Smirnov Roman made changes -
        Remote Link This issue links to "Page (camunda confluence)" [ 12125 ]
        roman.smirnov Smirnov Roman made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Original Estimate 0 minutes [ 0 ]
        Remaining Estimate 0 minutes [ 0 ]
        Assignee Smirnov Roman [ roman.smirnov ] Nikola Koevski [ nikola.koevski ]
        Resolution Fixed [ 1 ]
        nikola.koevski Nikola Koevski made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        roman.smirnov Smirnov Roman made changes -
        Remote Link This issue links to "Page (camunda confluence)" [ 12125 ]
        andreas.tollschein Andreas Tollschein made changes -
        Link This issue is depended on by SUPPORT-4536 [ SUPPORT-4536 ]
        nikola.koevski Nikola Koevski made changes -
        Fix Version/s 7.10.0-alpha2 [ 15327 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Workflow camunda BPM [ 51763 ] Backup_camunda BPM [ 63922 ]

          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