Bug 31435 - Rename of computer objects does not work
Rename of computer objects does not work
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Computers
UCS 3.1
Other Linux
: P5 normal (vote)
: UCS 3.2
Assigned To: Lukas Walter
Erik Damrose
: interim-2
: 32660 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-23 14:50 CEST by Tim Petersen
Modified: 2013-11-19 06:43 CET (History)
6 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): Troubleshooting, Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Petersen univentionstaff 2013-05-23 14:50:49 CEST
When renaming an ip managed client via umc you'll get a traceback:

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 404, 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/ipmanagedclient.py", line 285, 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'


As the pointer in the forward zone is updated correctly while the record in the reverse zone is not, it seems that there is the problem.

This is reproducable with UCS 3.1-1 Errata 101
Comment 1 Erik Damrose univentionstaff 2013-06-13 16:44:09 CEST
I just noticed this bug, too. (3.1-1 Errata 122)
Renaming a UCC computer object or a memberserver produces the same error.
Comment 2 Andreas Peichert univentionstaff 2013-08-28 12:16:30 CEST
I also get this by changing the Hostname of a Client Computer in UMC Computers, while the name is successfully changed in LDAP
univention-directory-manager-tools 8.0.143-21.1027
Comment 3 Lukas Walter univentionstaff 2013-09-11 14:36:48 CEST
Only occured for objects with set DNS reverse zone.

Fixed (svn 43902).
Comment 4 Erik Damrose univentionstaff 2013-09-19 12:07:48 CEST
Fixed with univention-directory-manager-modules (9.0.23-1)

OK: Renaming all computer object types now works
OK: Changelog entry 
-> Verified
Comment 5 Erik Damrose univentionstaff 2013-09-20 15:19:22 CEST
*** Bug 32660 has been marked as a duplicate of this bug. ***
Comment 6 Stefan Gohmann univentionstaff 2013-11-19 06:43:11 CET
UCS 3.2 has been released:
 http://docs.univention.de/release-notes-3.2-en.html
 http://docs.univention.de/release-notes-3.2-de.html

If this error occurs again, please use "Clone This Bug".