Univention Bugzilla – Bug 38765
UMCP does not handle Unicode very well
Last modified: 2016-04-22 20:33:20 CEST
The following command fails: def get(self, request): self.finished(request.id, u"öä", mimetype="text/html") Maybe we can encode('utf-8') the result when necessary? Does not happen very often as we normally return mimetype="application/json". In fact, I do not know of any place in our code where this could happen. But external developers may stumble upon it.
Created attachment 6981 [details] patch The problem here is that UMCP expects bytes to calculate the length of the payload. The API is not designed to give unicode objects. message_length = len(body) Attached patch would also allow a unicode body. (if we want to support this).
*** This bug has been marked as a duplicate of bug 41084 ***