Bug 44367

Summary: Normalize of imported names with umlauts do not work completely
Product: UCS@school Reporter: Tobias Birkefeld <birkefeld>
Component: Import scriptsAssignee: Johannes Keiser <keiser>
Status: CLOSED DUPLICATE QA Contact: Florian Best <best>
Severity: major    
Priority: P5 CC: best, gohmann, grandjean, michelsmidt, schwardt, troeder
Version: UCS@school 4.1 R2   
Target Milestone: UCS@school 4.2 v4   
Hardware: Other   
OS: Linux   
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:
Bug Depends on:    
Bug Blocks: 44370, 47580    
Attachments: Import configures
imported file

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.