jmix icon indicating copy to clipboard operation
jmix copied to clipboard

EntityLogView does not show users from LDAP in dropdown list

Open Flaurite opened this issue 1 year ago • 0 comments

Environment

Jmix version: 2.0+

Bug Description

The project is configured to logging in only by LDAP users. In EntityLogView when you try filter logs by user you see nothing. The problem occurs due to this code:

userField.setItems(userRepository.getByUsernameLike("")
// ...

LDAP does not load users by empty string.

Possible solution is to use fetch callback API as described here: https://github.com/jmix-framework/jmix/issues/3034

Steps To Reproduce

  1. Download project: sample-sales.zip. It is configured to connect with LDAP.
  2. Start your LDAP server and configure users
  3. Launch the application
  4. Go to Audit -> Entity log
  5. Try to filter by user

Current Behavior

Users from LDPA are not loaded

audit

Expected Behavior

Users from LDAP should be loaded and shown in dropdown list.

Flaurite avatar Mar 26 '24 08:03 Flaurite