Univention Bugzilla – Bug 34250
Adding DNS reverse entry fails with traceback
Last modified: 2015-02-18 10:01:02 CET
Traceback on 3.2-0 errata51 (Borgfeld): 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 373, in _thread module.modify( properties ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 155, in wrapper_func ret = func( *args, **kwargs ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 410, in modify obj.modify() File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 345, in modify return self._modify(modify_childs,ignore_license=ignore_license) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 922, in _modify self._ldap_post_modify() File "/usr/lib/pymodules/python2.6/univention/admin/handlers/computers/windows.py", line 554, in _ldap_post_modify univention.admin.handlers.simpleComputer._ldap_post_modify( self ) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 1950, in _ldap_post_modify self.__add_dns_reverse_object( self[ 'name' ], dn, self[ 'ip' ][ 0 ] ) IndexError: list index out of range This error can occur when removing a IP address from an object but setting a DNS reverse zone. The form-validation should prevent this. I was unable to reproduce this in a normal way event not when using two UMC tabs.
May be DUPLICATE of Bug#33843. => May be already fixed
Fixed through changes made for Bug #33843, hence DUPLICATE. *** This bug has been marked as a duplicate of bug 33843 ***
Yes, DUPLICATE, unfortunately there is a bug in the fix of Bug #33843. Sorry for not spotting it in the first place. At least it was broken before and is broken thereafter. So no real regression, just a change in 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 385, in _thread module.modify( properties ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 155, in wrapper_func ret = func( *args, **kwargs ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 410, in modify obj.modify() File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 345, in modify return self._modify(modify_childs,ignore_license=ignore_license) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 922, in _modify self._ldap_post_modify() File "/usr/lib/pymodules/python2.6/univention/admin/handlers/computers/windows.py", line 554, in _ldap_post_modify univention.admin.handlers.simpleComputer._ldap_post_modify( self ) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 1969, in _ldap_post_modify ip = self['ip']['0'] TypeError: list indices must be integers, not str
(In reply to Dirk Wiesenthal from comment #3) > Yes, DUPLICATE, unfortunately there is a bug in the fix of Bug #33843. Sorry > for not spotting it in the first place. At least it was broken before and is > broken thereafter. So no real regression, just a change in 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 385, in _thread > module.modify( properties ) > File > "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/ > udm_ldap.py", line 155, in wrapper_func > ret = func( *args, **kwargs ) > File > "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/ > udm_ldap.py", line 410, in modify > obj.modify() > File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", > line 345, in modify > return self._modify(modify_childs,ignore_license=ignore_license) > File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", > line 922, in _modify > self._ldap_post_modify() > File > "/usr/lib/pymodules/python2.6/univention/admin/handlers/computers/windows. > py", line 554, in _ldap_post_modify > univention.admin.handlers.simpleComputer._ldap_post_modify( self ) > File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", > line 1969, in _ldap_post_modify > ip = self['ip']['0'] > > TypeError: list indices must be integers, not str Weird typo, my bad. As the other bug is already closed and these bugs are way of all about the same issue, this could be published under terms of this bug. svn 51149: univention-directory-manager-modules (9.0.77-2) added to 2014-06-11-univention-directory-manager-modules.yaml
Ok
Reported again, in function __add_dns_forward_object: File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 1934, in _ldap_post_modify self.__add_dns_forward_object( self[ 'name' ], dn, self[ 'ip' ][ 0 ] )
(In reply to Florian Best from comment #6) > Reported again, in function __add_dns_forward_object: Should be fixed since Errata 109. The report came from Errata 78.
http://errata.univention.de/ucs/3.2/170.html
Reported again, 3.2-2 errata144