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.
This is the controller panel for Smart Panels app
- is related to
-
CAM-6147 Update Ldap test dependency
- Closed