Univention Bugzilla – Bug 26346
Traceback beim Synchronisieren von DNS cname-Record nach UCS
Last modified: 2012-07-20 15:24:29 CEST
Bei der Synchronisation eines cname-Records von Samba4 nach UCS trat folgender Fehler auf: 05.03.2012 11:09:50,850 LDAP (ERROR ): Unknown Exception during sync_to_ucs 05.03.2012 11:09:50,851 LDAP (ERROR ): Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/s4connector/__init__.py", line 1272, in sync_to_ucs result = self.property[property_type].ucs_sync_function(self, property_type, object) File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/dns.py", line 893, in con2ucs ucs_cname_create(s4connector, object) File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/dns.py", line 563, in ucs_cname_create newRecord['cname']=c File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 260, in __setitem__ p=s.parse(value) File "/usr/lib/pymodules/python2.6/univention/admin/syntax.py", line 1038, in parse if self._re.match(text) != None: TypeError: expected string or buffer
*** This bug has been marked as a duplicate of bug 24375 ***
OK, Duplikat.
Ich konnte das beim Backup2master reproduzieren: 15.06.2012 21:41:31,848 LDAP (INFO ): ucs_cname_create: c == ['master801.deadlock80.local.'] 15.06.2012 21:41:31,848 LDAP (ERROR ): Unknown Exception during sync_to_ucs 15.06.2012 21:41:31,848 LDAP (ERROR ): Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/s4connector/__init__.py", line 1280, in sync_to_ucs result = self.property[property_type].ucs_sync_function(self, property_type, object) File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/dns.py", line 957, in con2ucs ucs_cname_create(s4connector, object) File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/dns.py", line 584, in ucs_cname_create newRecord['cname']=c File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 260, in __setitem__ p=s.parse(value) File "/usr/lib/pymodules/python2.6/univention/admin/syntax.py", line 1036, in parse if self._re.match(text) != None: TypeError: expected string or buffer Problem scheint zu sein, dass c eine Liste ist. So konnte ich das Problem umgehen: if type([]) == type(c): newRecord['cname']=c[0] else: newRecord['cname']=c
Fixed
Verified: * Code Review: OK, __unpack_cName liefert immer Liste zurück * Funktion: OK * Changelog: OK
UCS 3.0-2 has been released: http://forum.univention.de/viewtopic.php?f=54&t=1905 If this error occurs again, please use "Clone This Bug".