Bug 26346 - Traceback beim Synchronisieren von DNS cname-Record nach UCS
Traceback beim Synchronisieren von DNS cname-Record nach UCS
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Stefan Gohmann
Arvid Requate
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-05 12:23 CET by Arvid Requate
Modified: 2012-07-20 15:24 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 Arvid Requate univentionstaff 2012-03-05 12:23:00 CET
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
Comment 1 Arvid Requate univentionstaff 2012-03-06 10:43:13 CET

*** This bug has been marked as a duplicate of bug 24375 ***
Comment 2 Stefan Gohmann univentionstaff 2012-06-29 09:21:02 CEST
OK, Duplikat.
Comment 3 Stefan Gohmann univentionstaff 2012-07-06 06:49:45 CEST
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
Comment 4 Stefan Gohmann univentionstaff 2012-07-10 08:08:55 CEST
Fixed
Comment 5 Arvid Requate univentionstaff 2012-07-12 17:25:07 CEST
Verified:
* Code Review: OK, __unpack_cName liefert immer Liste zurück
* Funktion: OK
* Changelog: OK
Comment 6 Stefan Gohmann univentionstaff 2012-07-20 15:24:29 CEST
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".