Icinga/icingaweb2

Changing a username will not update everything

Opened this issue · 1 comments

Describe the bug

We have icingaweb2 with local icingaweb2 mysql backend for the users. Changing the username of an existing user will end in an inconsistent state of this user.

To Reproduce

  1. Open Icingaweb2, list the existing users and choose the one you want to change
    1.a) https://icinga/user/list#!/user/edit?backend=icingaweb2&user=USERNAME
  2. Change the username to a new username and submit the formular
  3. Login with the changed username

Expected behavior

Everything looks no not before anymore. You loose your group membership, your personal special configurations.

Icinga Web 2 Version
2.7.1
Git Commit
b0bf9c4
PHP Version
5.6.30-0+deb8u1

icinga2 - The Icinga 2 network monitoring daemon (version: r2.11.0-1)

Copyright (c) 2012-2019 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl2.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:
Platform: Debian GNU/Linux
Platform version: 9 (stretch)
Kernel: Linux
Kernel version: 4.9.0-11-amd64
Architecture: x86_64

ref/NC/775781