Univention Bugzilla – Bug 44370
Normalize in user templates of names with umlauts do not work completely
Last modified: 2018-08-13 12:33:54 CEST
If you use <:umlauts> in user templates (example of primary mail address: <firstname>[0].<lastname><:strip><:umlauts>@demo.univention.de), there will be a problem with names like "Ýlang Mustermann". +++ This bug was initially created as a clone of Bug #44367 +++ Import of "Ýlang Müstèrmánn" produce "?" in username and email address with default settings. I think there are some umlauts missing in "class property" in /usr/share/pyshared/univention/admin/__init__.py May be better to use something like unicodedata.normalize() (see https://docs.python.org/2/library/unicodedata.html#unicodedata.normalize) instead of hard coding UMLAUTS!
*** Bug 44367 has been marked as a duplicate of this bug. ***
univention-management-console-module-udm: r 80357 univention-management-console-module-udm (7.0.10-5) * Bug #44370: Add missing basic latin umlauts for the 'umlauts' modifier in templates YAML: r 80376 ------------- univention-directory-manager-modules: r 80358 univention-directory-manager-modules (12.0.17-13) * Bug #44370: Use unicodedata.normalize to convert umlauts YAML: r 80377
I created a test script: ucs-test-ucsschool (4.0.4-21): r80400 | Bug #44370: add test case 219_import_users_umlauts
For the YAML: "Correctly normalize umlauts and special characters for the umlauts modifier in templates." Might be better → "The <:umlauts> modifier in the templating mechanism of e.g. user templates now normalizes all characters."
(In reply to Florian Best from comment #4) > For the YAML: > "Correctly normalize umlauts and special characters for the umlauts modifier > in templates." > > Might be better → "The <:umlauts> modifier in the templating mechanism of > e.g. user templates now normalizes all characters." Adapted yaml: r 80418
OK: fix for UCS@school importer OK: fix for UMC user templates OK: YAML
<http://errata.software-univention.de/ucs/4.2/74.html> <http://errata.software-univention.de/ucs/4.2/75.html>