Bug 44367 - Normalize of imported names with umlauts do not work completely
Normalize of imported names with umlauts do not work completely
Status: CLOSED DUPLICATE of bug 44370
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 4.1 R2
Other Linux
: P5 major (vote)
: UCS@school 4.2 v4
Assigned To: Johannes Keiser
Florian Best
:
Depends on:
Blocks: 44370 47580
  Show dependency treegraph
 
Reported: 2017-04-13 12:37 CEST by Tobias Birkefeld
Modified: 2018-08-13 12:33 CEST (History)
6 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.429
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
Import configures (521 bytes, application/json)
2017-04-13 12:37 CEST, Tobias Birkefeld
Details
imported file (135 bytes, text/csv)
2017-04-13 12:37 CEST, Tobias Birkefeld
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Birkefeld univentionstaff 2017-04-13 12:37:17 CEST
Created attachment 8774 [details]
Import configures

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!
Comment 1 Tobias Birkefeld univentionstaff 2017-04-13 12:37:31 CEST
Created attachment 8775 [details]
imported file
Comment 2 Daniel Tröder univentionstaff 2017-04-18 08:47:34 CEST
Please upload the resulting configuration from the logfile. With that we can see how the actually used configuration looks like.

Was "<:umlauts>" used in the username scheme?

{
        "scheme": {
                "username": {
                        "default": "<:umlauts><firstname>[0].<lastname><:lower>[COUNTER2]"
                }
        }
}
Comment 3 Tobias Birkefeld univentionstaff 2017-04-18 09:44:37 CEST
As described in the documentation, the default for "scheme:  username:  default" is "<:umlauts><firstname>[0].<lastname>[COUNTER2]". So I'm assuming that these values were used.

https://docs.software-univention.de/ucsschool-import-handbuch-4.1R2.html#table:userimport_configuration
Comment 4 Tobias Birkefeld univentionstaff 2017-04-18 09:48:10 CEST
And with bug 44370 this is not really a import-script problem, more a generic UDM problem.
Comment 5 Daniel Tröder univentionstaff 2017-04-18 10:32:31 CEST
ACK

*** This bug has been marked as a duplicate of bug 44370 ***
Comment 6 Florian Best univentionstaff 2017-06-21 19:26:57 CEST
Yes, duplicate.
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2017-10-16 21:35:41 CEST
UCS@school 4.2 v4 has been released.

http://docs.software-univention.de/changelog-ucsschool-4.2v4-de.html

If this error occurs again, please clone this bug.