Univention Bugzilla – Bug 57090
migrate-fetchmail does not distinguish between template and user objects
Last modified: 2024-03-07 13:07:38 CET
The join script 92univention-fetchmail.inst failed because the migration script /usr/share/univention-fetchmail/migrate-fetchmail.py tried to process objects that are templates which don't have a uid. The following change in line 147 was needed to make it work: #filter='(objectClass=univentionFetchmail)', filter='(&(objectClass=univentionFetchmail)(uid=*))',
This was the traceback: Traceback (most recent call last): File "/usr/share/univention-fetchmail/migrate-fetchmail.py", line 195, in <module> main() File "/usr/share/univention-fetchmail/migrate-fetchmail.py", line 190, in main c.main() File "/usr/share/univention-fetchmail/migrate-fetchmail.py", line 110, in main ret = self.convert() File "/usr/share/univention-fetchmail/migrate-fetchmail.py", line 140, in convert uid = attrs['uid'][0].decode('UTF-8') KeyError: 'uid'
Changes: Only process user objects in migrate-fetchmail.py Package: Package: univention-fetchmail Version: 13.0.8-2 Branch: ucs_5.0-0 Scope: errata5.0-6 Commits: 56d2f8076b679cc59a4209424397620d54645054
QA: advisories: OK "/usr/share/univention-fetchmail/migrate-fetchmail.py" only processes objects that are of the object type "users/user" (and of objectClass "univentionFetchmail"): OK Waiting for the overnight test run
QA: no related errors in the overnight test run: OK
<https://errata.software-univention.de/#/?erratum=5.0x977>