Bug 28945 - Traceback beim Löschen der MAC
Traceback beim Löschen der MAC
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Computers
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1-1-errata
Assigned To: Lukas Walter
Stefan Gohmann
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-26 16:52 CEST by Stefan Gohmann
Modified: 2013-04-12 15:06 CEST (History)
2 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 Stefan Gohmann univentionstaff 2012-10-26 16:52:43 CEST
Beim Löschen der MAC eines UCC Clients mit DHCP bekomme ich einen Traceback:

  File "/usr/lib/pymodules/python2.6/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.6/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py", line 350, in _thread
    module.modify( properties )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 157, in wrapper_func
    ret = func( *args, **kwargs )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 403, in modify
    obj.modify()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 343, in modify
    return self._modify(modify_childs,ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 747, in _modify
    ml=self._ldap_modlist()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/computers/ucc.py", line 530, in _ldap_modlist
    ml=univention.admin.handlers.simpleComputer._ldap_modlist( self )
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 2065, in _ldap_modlist
    if len(self.info['ip']) == 1 and len(self.info['mac']) == 1 and len(self.info['dhcpEntryZone']):

KeyError: 'mac'
Comment 1 Lukas Walter univentionstaff 2013-04-05 10:44:32 CEST
Fixed by using dict.get(key, []) instead of simply accessing dict[key].

Added YAML, rebuild package for errata3.1-1 and ucs3.1-2 scopes.
Comment 2 Stefan Gohmann univentionstaff 2013-04-10 07:43:29 CEST
Tests errata: OK

3.1-2 review: OK
diff -Nur -x '.svn' ucs-3.1-1/management/univention-directory-manager-modules/
ucs-3.1-2/management/univention-directory-manager-modules/

YAML: OK

3.1-2 changelog: OK
Comment 3 Janek Walkenhorst univentionstaff 2013-04-12 15:06:14 CEST
http://errata.univention.de/3.1-errata87.html