Univention Bugzilla – Bug 41747
No schools are detected by school lib on DC backup
Last modified: 2016-10-06 08:56:07 CEST
Created attachment 7787 [details] patch On a DC Backup the ucsschool.lib doesn't find any school because it is checked if the DC Backup is part of the OU$foo-Edukativnetz group - which is never the case. It's a regression in UCS@school 4.1R2. Patch attached.
QA: Open the schoolwizards/school module on a DC Backup. The schools are shown again. ucs-school-lib (9.0.20-8): r70944 | Bug #41747: Fix detection of schools on DC Backup ucs-school-lib.yaml: r70945 | YAML Bug #41747
OK: code OK: advisory (a little bit more informative would be nice) OK: manual test UMC OK: manual test Python: root@b56:~# ucr get server/role domaincontroller_backup root@b56:~# dpkg -l python-ucs-school ii python-ucs-school 9.0.20-1.224.20160 all root@b56:~# python >>> from ucsschool.lib.models import School >>> import univention.uldap >>> lo = univention.uldap.getAdminConnection() >>> School.get_all(lo) [] root@b56:~# univention-upgrade --ignoressh --ignoreterm root@b56:~# dpkg -l python-ucs-school ii python-ucs-school 9.0.20-12.235.2016 all root@b56:~# python >>> from ucsschool.lib.models import School >>> import univention.uldap >>> lo = univention.uldap.getAdminConnection() >>> School.get_all(lo) [School(name='schule1', dn='ou=schule1,dc=uni,dc=dtr'), School(name='gsmitte', dn='ou=gsmitte,dc=uni,dc=dtr'), School(name='schule2', dn='ou=schule2,dc=uni,dc=dtr'), School(name='schule3', dn='ou=schule3,dc=uni,dc=dtr'), School(name='schule4', dn='ou=schule4,dc=uni,dc=dtr')]
UCS@school 4.1 R2 v5 has been released. http://docs.software-univention.de/changelog-ucsschool-4.1R2v5-de.html If this error occurs again, please clone this bug.