Bug 55893 - Traceback during 92univention-fetchmail-schema.inst
Traceback during 92univention-fetchmail-schema.inst
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-3-errata
Assigned To: Juan Carlos
Christian Castens
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-03-20 14:18 CET by Christina Scheinig
Modified: 2023-03-22 13:58 CET (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?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023031721000471
Bug group (optional):
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 2023-03-20 14:18:32 CET
UCS: 5.0-3 errata614
Installed: fetchmail=6.3.26 
-------------------
92univention-fetchmail-schema.inst
2023-03-17 16:00:20.189322559+01:00 (in joinscript_init)
Object exists: cn=ldapschema,cn=univention,dc=schein,dc=ig
Object exists: cn=ldapacl,cn=univention,dc=schein,dc=ig
INFO: No change of core data of object univention-fetchmail.
INFO: No change of core data of object 58univention-fetchmail-schema.
No modification: cn=univention-fetchmail,cn=ldapschema,cn=univention,dc=schein,dc=ig
No modification: cn=58univention-fetchmail-schema,cn=ldapacl,cn=univention,dc=schein,dc=ig
Waiting for activation of the extension object univention-fetchmail: OK
Waiting for activation of the extension object 58univention-fetchmail-schema: OK
Object exists: cn=udm_syntax,cn=univention,dc=schein,dc=ig
INFO: No change of core data of object fetchmail.
Object modified: cn=fetchmail,cn=udm_syntax,cn=univention,dc=schein,dc=ig
Waiting for activation of the extension object fetchmail: OK
Waiting for file /usr/lib/python3/dist-packages/univention/admin/syntax.d/fetchmail.py: OK
Object exists: cn=udm_hook,cn=univention,dc=schein,dc=ig
INFO: No change of core data of object fetchmail.
No modification: cn=fetchmail,cn=udm_hook,cn=univention,dc=schein,dc=ig
Waiting for activation of the extension object fetchmail: OK
Waiting for file /usr/lib/python3/dist-packages/univention/admin/hooks.d/fetchmail.py: OK
Object exists: cn=mail,cn=custom attributes,cn=univention,dc=schein,dc=ig
Object exists: cn=FetchmailConfigSingle,cn=mail,cn=custom attributes,cn=univention,dc=schein,dc=ig
Create extended attribute univentionFetchmailSingle univentionFetchmailMulti
Object exists: cn=FetchmailConfigMulti,cn=mail,cn=custom attributes,cn=univention,dc=schein,dc=ig
Converting old fetchmail configuration...
Skip object with uid "Administrator". Already migrated or incomplete configuration
Skip object with uid "hps". Already migrated or incomplete configuration
Skip object with uid "rektorat". Already migrated or incomplete configuration
Skip object with uid "konrektorat". Already migrated or incomplete configuration
Traceback (most recent call last):
File "/usr/share/univention-fetchmail/migrate-fetchmail.py", line 176, in main()
File "/usr/share/univention-fetchmail/migrate-fetchmail.py", line 171, in main
c.main()
File "/usr/share/univention-fetchmail/migrate-fetchmail.py", line 97, in main
ret = self.convert()
File "/usr/share/univention-fetchmail/migrate-fetchmail.py", line 144, in convert
passwd[0] if passwd else get_pw_from_rc(file, attrs['uid'][0].decode('UTF-8')).encode('UTF-8'),
AttributeError: 'NoneType' object has no attribute 'encode'
__JOINERR__:FAILED: /usr/lib/univention-install/92univention-fetchmail-schema.inst
EXITCODE=1

--------------
The customer says that it concerns only users, which are on the UCS but do not have a post office box
Comment 1 Juan Carlos univentionstaff 2023-03-22 11:28:38 CET
Package:

Package: univention-fetchmail
Version: 13.0.5-6A~5.0.0.202303221110
Branch: ucs_5.0-0
Scope: errata5.0-3


Changes:

New checks have been added to the migrate-fetchmail.py script to avoid errors during execution when a fetchmail configuration is incomplete.

Commits:

eb31128e5c06 | Bug #55893: changelog and advisory
7332838288bf | Bug #55893: improve checks in migrate-fetchmail script
Comment 2 Christian Castens univentionstaff 2023-03-22 11:30:17 CET
QA: OK