Bug 41747 - No schools are detected by school lib on DC backup
No schools are detected by school lib on DC backup
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Ucsschool-lib
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2 vXXX
Assigned To: Florian Best
Daniel Tröder
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-07 16:11 CEST by Florian Best
Modified: 2016-10-06 08:56 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.137
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): External feedback
Max CVSS v3 score:
best: Patch_Available+


Attachments
patch (700 bytes, patch)
2016-07-07 16:11 CEST, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-07-07 16:11:23 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.
Comment 1 Florian Best univentionstaff 2016-07-12 15:43:57 CEST
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
Comment 2 Daniel Tröder univentionstaff 2016-07-19 09:44:06 CEST
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')]
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2016-10-04 13:24:46 CEST
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.