Univention Bugzilla – Bug 42623
ucs-school-computer-room: encoding error in display name
Last modified: 2017-01-09 15:11:45 CET
Created attachment 8081 [details] screenshot: error with german umlauts The display of the logged in user in the UMC computer room module displays an error � for german umlauts (see attachment).
Where does the user come from? UCS is UTF-8 only and this is latin-1. Our code should never produce such usernames.
The user was created using the UCS@school UMC user module. My guess is, that the displayed name is provided by italc.
It's the 'firstname'.
cn:: U2Now7xsZXIgRWlucw== gecos: Schueler Eins displayName:: U2Now7xsZXIgRWlucw== sn: Eins givenName:: U2Now7xsZXI= The encoding in LDAP is correct (b'Sch\xc3\xbcler Eins')
The HTTP Response of the update/ request is: {"status": 200, "message": null, "result": {"computers": [{"InputLock": null, "DemoClient": null, "name": "win01", "ip": "10.200.3.3", "MessageBox": null, "DemoServer": null, "ScreenLock": null, "mac": "52:54:00:98:3f:b4", "connection": "connected", "user": "schul1 (Sch\ufffdler Eins)", "id": "win01", "objectType": "computers/windows", "teacher": false, "description": null}], "locked": false, "user": "uid=Administrator,cn=users,dc=uni,dc=dtr"}} So it's already wrong in the backend. ITALC says that: repr(ITALC_Computer().user.current) is 'schul1 (Sch\xef\xbf\xbdler Eins)' >>> 'Sch\xef\xbf\xbdler'.decode('utf-8') u'Sch\ufffdler' I guess the fix is this one: https://github.com/iTALC/italc/commit/30d1d792b393ef81c5d79fcc239ba8568af3436f
@Daniel Could you verify this patch by installing the iTALC 3.0 client from https://github.com/iTALC/italc/releases on your windows machine? I will merge the latest patches into our iTALC then, too.
(In reply to Florian Best from comment #6) > @Daniel > Could you verify this patch by installing the iTALC 3.0 client from > https://github.com/iTALC/italc/releases on your windows machine? > I will merge the latest patches into our iTALC then, too. Oh the patch is only part of iTALC 3.0.1 which is not released and built yet.
Is it worth reopening 38213 and merge the most recent commits (~20)?
(In reply to Sönke Schwardt-Krummrich from comment #8) > Is it worth reopening 38213 and merge the most recent commits (~20)? Yes!
*** This bug has been marked as a duplicate of bug 38415 ***
Bug was fixed as part of Bug #38415. A student with firstname=Stüdén and lastname=TÖne displays correctly
UCS@school 4.1 R2 v7 has been released. http://docs.software-univention.de/changelog-ucsschool-4.1R2v7-de.html If this error occurs again, please clone this bug.