Univention Bugzilla – Bug 40780
Import script fails to modify users since 4.1-0 erratum 69
Last modified: 2016-03-16 15:01:09 CET
In erratum 69 a change in univention/uldap.py revealed a bug in ucs-school-import which leads to a traceback while modifying users: Processing line 1: M Anton1 Meyer Anton gsmitte gsmitte-1A Anton1@nstx.local 0 1 0 ERROR: <type 'exceptions.TypeError'> unhashable type: 'dict' Traceback (most recent call last): File "/usr/share/ucs-school-import/scripts/import_user", line 1322, in modify_user lo.modify(person.getDN(),[("departmentNumber",o_sNr,person.allsNrs)]) File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 414, in modify return self.lo.modify(dn, changes) File "/usr/lib/pymodules/python2.7/univention/uldap.py", line 473, in modify if not isinstance(oldvalue, basestring) and not isinstance(newvalue, basestring) and set(oldvalue) == set(newvalue): TypeError: unhashable type: 'dict'
ucs-school-import (12.0.4-1): r67762 | Bug #40780: fix traceback if users are modified via CLI import script The inapropriate lo.search(…) call has been replaced by a lo.get(…).get(…) call.
OK: problem reproduced OK: fix
UCS@school 4.1 v5 has been released. If this error occurs again, please clone this bug.