Bug 54675 - Traceback in systemdiagnostic check 52_mail_acl_sync
Traceback in systemdiagnostic check 52_mail_acl_sync
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - System diagnostic
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-1-errata
Assigned To: Maximilian Janßen
Florian Best
https://git.knut.univention.de/univen...
: python3-migration
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-04-20 13:14 CEST by Christina Scheinig
Modified: 2022-06-01 16:51 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.034
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022041921000289
Bug group (optional): Regression
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Scheinig univentionstaff 2022-04-20 13:14:35 CEST
Traceback in systemdiagnostic check.

univention-app info
UCS: 5.0-1 errata287
Installed: admindiary-backend=1.0 admindiary-frontend=1.0 bluespice=3.2.7-ucs.1 cups=2.2.1 dhcp-server=12.0 fetchmail=6.3.26 mailserver=12.0 pkgdb=11.0 radius=5.0 samba4=4.13 self-service=5.0 self-service-backend=5.0 4.4/benno-mailarchiv=2.8.16

Looks familiar. Python3 incompatibility?

############################### Start 52_mail_acl_sync ###############################
## Check failed: 52_mail_acl_sync - Überprüfe ACL Einträge der globalen IMAP Ordner ##
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/diagnostic/__init__.py", line 280, in execute
    result = execute(umc_module, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/diagnostic/plugins/52_mail_acl_sync.py", line 232, in run
    differences = list(all_differences(acl_class))
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/diagnostic/plugins/52_mail_acl_sync.py", line 200, in all_differences
    imap_acl = acl_class.from_folder(folder)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/diagnostic/plugins/52_mail_acl_sync.py", line 177, in from_folder
    acl_list = cls._get_dovecot_acl(folder)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/diagnostic/plugins/52_mail_acl_sync.py", line 193, in _get_dovecot_acl
    return {identifier.strip(): set(rights.strip().split()) for (identifier, rights) in (line.rsplit('  ', 1) for line in output.decode('UTF-8', 'replace'))}
AttributeError: 'list' object has no attribute 'decode'
################################ End 52_mail_acl_sync ################################
Comment 1 Florian Best univentionstaff 2022-04-21 13:24:55 CEST
Regression caused by d7c9731df4f8c559546474acfe301694ae5a4525
Comment 2 Maximilian Janßen univentionstaff 2022-05-06 15:37:00 CEST
univention-management-console-module-diagnostic (6.0.0-30)
32ca3b679e78 | Bug #54675: diagnostic test 52_mail_acl_sync fails if multiple IMAP
Comment 3 Florian Best univentionstaff 2022-05-09 19:27:56 CEST
OK: Python 3 migration regression fixed
OK: YAML