Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting and restoring usergroup leads to loss of link between user/usergroup #2914

Open
openmmp opened this issue Sep 12, 2024 · 0 comments

Comments

@openmmp
Copy link

openmmp commented Sep 12, 2024

Expected Behavior

When I delete a usergroup and afterwards undo all my changes via activity log, the former status should be fully restored, that is including the link between any users and the deleted usergroup.

Current Behavior

When I delete a usergroup and afterwards undo this action via activity log, the former status is not fully restored, since the link between user and usergroup is missing. On the surface of the UI this link is shown as part of the user object. When deleting a usergroup, the deletion itself shows up in the activity log, yet the change in the user objects that depend on that group (which is the removal of the deleted group) is not. This may be due to the fact that these links are stored in a separate database table.

Possible Solution

When deleting a usergroup, the resulting removal of links to user objects are logged as changes to those user objects to the activity log and can thus be restored.

Steps to Reproduce (for bugs)

  • add a user template
  • add a usergroup
  • add a user connected to this group
  • delete usergroup
  • view user & activity log

Your Environment

  • Director version: 1.11.1
  • Icinga Web 2 version: 2.12.1
  • PHP 8.2.13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant