Univention Bugzilla – Bug 45503
typo in ldap filter of staff class
Last modified: 2017-10-16 21:33:08 CEST
Implementing the permission checks for Bug #45044 I found a typo in Teacher.type_filter which has been there since 4.1r2. It is used in User.lookup(), and although it didn't make problems until today I think it is potentially problematic enough to be fixed in both 4.1r2 and 4.2.
Typo on my part: Staff.type_filter
commit 391ba4d8 ucs-school-lib 9.0.33-7.284.201710111126
It would be nice if you say what typo there actually is in this bug report.
There was a ")" too much in the ldap filter. As univention.admin.filter.parse() is broken this was not really relevant until now. >>> str(conjunction('&', [parse('(&(!(objectClass=ucsschoolTeacher))(objectClass=ucsschoolStaff)))'), parse('ucsschoolSchool=foo')])) '(&(&(!(objectClass=ucsschoolTeacher))(objectClass=ucsschoolStaff))(ucsschoolSchool=foo))' OK: fix (~OK: YAML)
The reason it was not detected prior was Bug #37170.
UCS@school 4.1 R2 v14 has been released. http://docs.software-univention.de/changelog-ucsschool-4.1R2v14-de.html If this error occurs again, please clone this bug.