Univention Bugzilla – Bug 32660
Renaming computer causes traceback
Last modified: 2018-04-13 13:28:37 CEST
With UCS 3.1-1-errata180 I tried to rename a Windows computer object that had DNS forward and reverse zone entries plus a DHCP entry. The computer object was located in an OU (UCS@school-OU). Funny enough, the rename succeeded to some degree - at least the computer object received a new name. The UMC displayed the following 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 359, 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 344, in modify return self._modify(modify_childs,ignore_license=ignore_license) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 871, 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 1965, in _ldap_post_modify self.__rename_dns_object( position = None, old_name = self.__changes[ 'name' ][ 0 ], new_name = self.__changes[ 'name' ][ 1 ] ) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 1377, in __rename_dns_object object[ 'ptr_record' ] = object[ 'ptr_record' ].replace( old_name, new_name ) AttributeError: 'list' object has no attribute 'replace'
*** This bug has been marked as a duplicate of bug 31435 ***