Univention Bugzilla – Bug 50232
Changing the password via umc/user fails with utf-8 error
Last modified: 2019-09-20 17:25:14 CEST
While there are special chars in 'password/prohibited/chars' changing a users password results in "utf8' codec can't decode byte 0xc3 in position 0: unexpected end of data" This seems to be the parameter handling of the http requests.
Created attachment 10185 [details] possible patch password/quality/forbidden/chars and password/quality/required/chars need to be decoded from string to utf8. Otherwise the forbidden/required characters are checked per byte and not per character. Note: If the password is instead encoded to bytes (I think) whole plains would be forbidden rather than single characters.
(In reply to Jürn Brodersen from comment #1) > Created attachment 10185 [details] > possible patch Decoding should only happen on Python2, in Python 3 the UCR interface is unicode (already decoded UTF-8).