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

LdapUserQuery order by is not recognized

    XMLWordPrintable

Details

    Description

      Steps to reproduce
      1. configure a ldap with the property sortControlSupported = true
      2. execute a UserQuery whereby you try to order by the users' last name, for example:

      identityService
        .createUserQuery()
        .userFirstNameLike("Ro*")
        .orderByUserLastName().asc()
        .list();
      

      3. the result set is not ordered by the given argument

      Problem
      The LdapIdentyProviderSession still uses AbstractQuery#getOrderBy() (see https://github.com/camunda/camunda-bpm-platform/blob/master/engine-plugins/identity-ldap/src/main/java/org/camunda/bpm/identity/impl/ldap/LdapIdentityProviderSession.java#L513), which is deprecated since 7.3.

      Hint
      Use AbstractQuery#getOrderingProperties() instead of AbstractQuery#getOrderBy.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                meyer Daniel Meyer
                roman.smirnov Roman Smirnov
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce