Bug 29681 - Zone-TXT-Record: Zeichenkette zerfällt zu Liste von Einzelzeichen
Zone-TXT-Record: Zeichenkette zerfällt zu Liste von Einzelzeichen
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - DNS
UCS 3.1
Other Linux
: P5 normal (vote)
: UCS 3.1-1-errata
Assigned To: Lukas Walter
Stefan Gohmann
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-10 14:04 CET by Philipp Hahn
Modified: 2013-04-12 15:06 CEST (History)
4 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
Max CVSS v3 score:
hahn: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2012-12-10 14:04:23 CET
UMC → UDM-DNS → Create Object → Forward Zone → TXT → "Das ist ein Test"
wird beim erneuten öffenen zu 16 Zeilen
"D"
"a"
"s"
" "
"i"
"s"
"t"
" "
"e"
"i"
"n"
" "
"T"
"e"
"s"
"t"

Im LDAP und UDM steht es noch richtig:
# udm dns/forward_zone list
...
DN: zoneName=test.phahn.pt,cn=dns,dc=phahn,dc=pt
ARG: None
  expire: 7 days
  ttl: 3 hours
  serial: 1
  txt: Das ist ein Test
  a: 192.168.123.1
  retry: 2 hours
  zone: test.phahn.pt
  zonettl: 3 hours
  refresh: 8 hours
  contact: root@phahn.pt.
  nameserver: 192.168.123.1.
  mx: 100 master.phahn.pt.
Comment 1 Alexander Kläser univentionstaff 2013-01-02 14:35:10 CET
Kann ich auf meinem System (ohne installiertem Samba) nicht reproduzieren, bei mir funktioniert es korrekt. In dem Handler dns/forward_zone.py ist txt als multivalue gekennzeichnet. Da könnte in deinem Fall das Problem liegen.
Comment 2 Philipp Hahn univentionstaff 2013-01-07 12:17:28 CET
Tritt auch auf demo.univention.de mit der dort bereits existierenden Zone auf.

Ursache ist eine Diskrepanz zwischen "multivalue=1" und der Verwendung von "ListToString":

branches/ucs-3.1/ucs/management/univention-directory-manager-modules/modules/univention/admin/handlers/dns/forward_zone.py:
...
        'txt': univention.admin.property(
                        multivalue=1,
...
mapping=univention.admin.mapping.mapping()
mapping.register('txt', 'tXTRecord', None, univention.admin.mapping.ListToString)
...

@@ -236,1 +236,1 @@
-mapping.register('txt', 'tXTRecord', None, univention.admin.mapping.ListToString)
+mapping.register('txt', 'tXTRecord')
Comment 3 Lukas Walter univentionstaff 2013-04-05 12:03:35 CEST
Das Mapping wurde entfernt.
Jetzt werden die Records richtig angezeigt.

Paket für ucs3.1-2 und errata3.1-1 scopes neugebaut, YAML hinzugefügt.
Comment 4 Stefan Gohmann univentionstaff 2013-04-11 08:00:41 CEST
Tests errata: OK

3.1-2 review: OK
diff -Nur -x '.svn' ucs-3.1-1/management/univention-directory-manager-modules/
ucs-3.1-2/management/univention-directory-manager-modules/

Changelog / YAML: some minor adjustments
Comment 5 Janek Walkenhorst univentionstaff 2013-04-12 15:06:13 CEST
http://errata.univention.de/3.1-errata87.html