Bug 33379 - the computerroom module room query currently fails with an traceback
the computerroom module room query currently fails with an traceback
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Computer room
UCS@school 3.2
Other Linux
: P5 normal (vote)
: UCS@school 3.2
Assigned To: Florian Best
Sönke Schwardt-Krummrich
:
Depends on: 29680
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-14 14:29 CET by Florian Best
Modified: 2013-12-03 21:34 CET (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2013-11-14 14:29:31 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.
Comment 1 Florian Best univentionstaff 2013-11-15 09:31:07 CET
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.
Comment 2 Florian Best univentionstaff 2013-11-15 09:32:13 CET
interim version → no Changelog required
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2013-11-17 22:05:06 CET
(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
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2013-12-03 21:34:48 CET
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".