Bug 32660 - Renaming computer causes traceback
Renaming computer causes traceback
Status: RESOLVED DUPLICATE of bug 31435
Product: UCS
Classification: Unclassified
Component: UMC - Computers
UCS 3.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-20 15:15 CEST by Jan Christoph Ebersbach
Modified: 2018-04-13 13:28 CEST (History)
1 user (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 Jan Christoph Ebersbach univentionstaff 2013-09-20 15:15:56 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'
Comment 1 Erik Damrose univentionstaff 2013-09-20 15:19:22 CEST

*** This bug has been marked as a duplicate of bug 31435 ***