Bug 25112

Summary: Kodierung für Umlaute überprüfen
Product: UCS Reporter: Alexander Kläser <klaeser>
Component: UMC (Generic)Assignee: UMC maintainers <umc-maintainers>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P5 CC: best, geerds
Version: UCS 3.0   
Target Milestone: UCS 3.x   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=35687
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): Internationalization
Max CVSS v3 score:

Description Alexander Kläser univentionstaff 2011-12-02 16:29:30 CET
Im Neustart-Modul traten Problem mit Umlauten auf (siehe Bug 22848), diese wurden bei der Rückgabe an das Frontend nicht richtig kodiert. Es kann noch einmal generell für andere Module (bspw. System-Setup) überprüft werden, ob dort entsprechenden Meldungen (auch Fehlermeldungen?) korrekt kodiert an das Frontend übergeben werden.
Comment 1 Jascha Geerds univentionstaff 2011-12-02 17:27:32 CET
Ergänzung:

Die vom Frontend erhaltenen Strings konnten (wenn darin Umlaute enthalten waren) nicht ohne Weiteres in Python benutzt werden. Das subprocess-Modul verursachte Probleme, als man 'shutdown -r now -m $string_vom_frontend' aufgerufen hat -- .encode('utf-8') verschaffte Abhilfe.
Comment 2 Florian Best univentionstaff 2014-02-07 19:05:48 CET
This is because we are using simplejson to decode the received bytes.
simplejson returns a python str if the input is pure ascii but unicode if it contains e.g. umlauts.

subprocess, file.write, etc. expects to get str(bytes) not unicode and will therefore raise an exception.
Comment 3 Florian Best univentionstaff 2014-11-28 10:13:47 CET
This is not a bug. See comment #1 and #2.