Bug#1049940: gosa: Various PHP errors in class_acl.inc.

Mike Gabriel sunweaver at debian.org
Thu Aug 17 07:36:00 BST 2023


Package: src:gosa
Version: 2.8~git20230203.10abe45+dfsg-8
Severity: important

Various PHP errors in class_acl.inc have been observed...

When opening a GOsa² ACL, we get this failure in PHP:

Fatal error: Uncaught Error: [] operator not supported for strings in  
/usr/share/gosa/include/class_acl.inc:327 Stack trace: #0  
/usr/share/gosa/include/class_acl.inc(312): acl->convertForListing()  
#1 /usr/share/gosa/include/class_acl.inc(256): acl->updateList() #2  
/usr/share/gosa/plugins/admin/acl/tabs_acl.inc(43): acl->__construct()  
#3 /usr/share/gosa/include/class_management.inc(896):  
acltab->__construct() #4  
/usr/share/gosa/plugins/admin/acl/class_aclManagement.inc(134):  
management->editEntry() #5  
/usr/share/gosa/include/class_management.inc(582):  
aclManagement->editEntry() #6  
/usr/share/gosa/include/class_management.inc(195):  
management->handleActions() #7  
/usr/share/gosa/plugins/admin/acl/main.inc(44): management->execute()  
#8 /usr/share/gosa/html/main.php(425): require('...') #9 {main} thrown  
in /usr/share/gosa/include/class_acl.inc on line 327

After fixing this, more failures occur, such as:

Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array)  
must be of type array, string given in  
/usr/share/gosa/include/class_acl.inc:676 Stack trace: #0  
/usr/share/gosa/include/class_acl.inc(676): array_keys() #1  
/usr/share/gosa/include/class_tabs.inc(172): acl->execute() #2  
/usr/share/gosa/plugins/admin/acl/tabs_acl.inc(80): tabs->execute() #3  
/usr/share/gosa/include/class_management.inc(215): acltab->execute()  
#4 /usr/share/gosa/plugins/admin/acl/main.inc(44):  
management->execute() #5 /usr/share/gosa/html/main.php(425):  
require('...') #6 {main} thrown in  
/usr/share/gosa/include/class_acl.inc on line 676

Patch is on its way...

Mike
-- 

mike gabriel aka sunweaver (Debian Developer)
mobile: +49 (1520) 1976 148
landline: +49 (4351) 486 14 27

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: sunweaver at debian.org, http://sunweavers.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: Digitale PGP-Signatur
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-pkg-team/attachments/20230817/4474bde4/attachment.sig>


More information about the Debian-edu-pkg-team mailing list