jmix-projects / jmix-ui

DEPRECATED. Use https://github.com/jmix-framework/jmix
https://www.jmix.io
3 stars 7 forks source link

[UserSubstitution] Handle user removal #696

Closed glebfox closed 2 years ago

glebfox commented 2 years ago

Case 1:

  1. Add user substitutions to admin
  2. Relogin to update UserIndicator (if https://github.com/Haulmont/jmix-ui/issues/678 isn't fixed yet)
  3. Remove one of the substituted users
  4. Try to select the removed user

AR:

UsernameNotFoundException apprears and app is no longer usable until it's started

Case 2:

  1. Add user substitutions to admin
  2. Remove one of the substituted users
  3. Log out
  4. Try to login with admin

AR:

UsernameNotFoundException appears and you can't login

konyashkina commented 2 years ago

Tested on Jmix version: 1.1.0-SNAPSHOT Jmix Studio plugin version: 1.1.SNAPSHOT3625-212 IntelliJ version: IntelliJ IDEA 2021.2.2 (Ultimate Edition)