Univention Bugzilla – Bug 33379
the computerroom module room query currently fails with an traceback
Last modified: 2013-12-03 21:34:48 CET
The computerroom module is unusable with the changes. ####### Die Ausführung des Kommandos computerroom/query ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py", line 204, in execute func( request ) File "/usr/lib/pymodules/python2.6/ucsschool/lib/schoolldap.py", line 209, in wrapper_func return func( *args, **kwargs ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/computerroom/__init__.py", line 363, in query result = [computer.dict for computer in self._italc.values()] File "/usr/lib/pymodules/python2.6/univention/management/console/modules/computerroom/italc2.py", line 359, in dict 'mac' : self.macAddress, File "/usr/lib/pymodules/python2.6/univention/management/console/modules/computerroom/italc2.py", line 382, in macAddress return self._computer.info.get( 'mac', ( None, ) )[ 0 ] IndexError: list index out of range ######## +++ This bug was initially created as a clone of Bug #29680 +++ Folgende Schritte sind unternommen worden: Samba-Gruppe angelegt Samba-Computer angelegt mit dieser Gruppe als primärer Aus der Samba-Gruppe diesen Computer aus "enthaltene Computer" gelöscht Jetzt gibt ein udm/get u.a. das zurück: "users": [""] Das macht einen Eintrag in "enthaltene Benutzer". Und zwar einen leeren (d.h. CheckBox ist da, Name fehlt). root@master:~# univention-ldapsearch -LLL cn=mygroup dn: cn=mygroup,cn=groups,dc=dirk,dc=ucs31,dc=qa sambaGroupType: 2 cn: mygroup objectClass: top objectClass: posixGroup objectClass: univentionGroup objectClass: sambaGroupMapping objectClass: univentionObject univentionObjectType: groups/group gidNumber: 8039 sambaSID: S-1-4-8039 uniqueMember: Es _könnte_ sich um Bug #13946 handeln.
The bug was: A new computer without mac address was created. The UDM(ldap) attribute "mac" is a multivalue. At Bug #29680 the default value for multivalues which aren't set in LDAP has been changed from [''] to []. Because no 'mac' attribute was set on the computer it failed. This has been fixed for 'mac' and 'ip' attributes.
interim version → no Changelog required
(In reply to Florian Best from comment #1) > The bug was: > A new computer without mac address was created. The UDM(ldap) attribute > "mac" is a multivalue. At Bug #29680 the default value for multivalues which > aren't set in LDAP has been changed from [''] to []. Because no 'mac' > attribute was set on the computer it failed. This has been fixed for 'mac' > and 'ip' attributes. → bug was repeatable and is fixed in new version (In reply to Florian Best from comment #2) > interim version → no Changelog required → OK → VERIFIED
UCS@school 3.2 has been released: http://docs.univention.de/release-notes-ucsschool-3.2-de.html If this error occurs again, please use "Clone This Bug".