Znuny icon indicating copy to clipboard operation
Znuny copied to clipboard

Bug - AdminACL: Wrong fallback for ACL keys level 3 variable

Open stefanhaerter opened this issue 10 months ago • 0 comments

Environment

  • Server OS: -
  • Browser: -
  • Znuny version: -

Expected behavior

Admin screen for editing ACLs loads without error.

Actual behavior

When loading the screen, an internal server error occurs (derived from testing in OTOBO).

How to reproduce

Steps to reproduce the behavior:

  1. Go to the system configuration
  2. Search for 'ACLKeysLevel3'
  3. Disable all found settings and deploy the changes
  4. Navigate to AdminACL
  5. Try to add a new ACL or edit an existing one

Additional information

If the understanding of the Znuny code is correct, you are also affected by a minor bug reported by me in https://github.com/RotherOSS/otobo/issues/4059. Relevant code:

https://github.com/znuny/Znuny/blob/7f7219efa57683f70a928d4ce960c713fa51da13/Kernel/Modules/AdminACL.pm#L791-L797

The cause of problem is that an array ref is used as fallback for the ACLKeysLevel3 variable when instead it should be a hash ref.

stefanhaerter avatar Jan 14 '25 14:01 stefanhaerter