Univention Bugzilla – Bug 56753
TypeError in resources.py / SetUserPreferences has no async post method
Last modified: 2023-10-25 16:31:05 CEST
We see the following error in management-console-server.log during the Multiserver test job for a while now: ``` 1 times in /var/log/univention/management-console-server.log: https://jenkins2022.knut.univention.de/job/UCSschool-5.0/job/Install%20Multiserver/Config=s4,TestGroup=base1,UCSRelease=testing/ws/test/management-console-server.log Traceback (most recent call last): File "/usr/lib/python3/dist-packages/tornado/web.py", line 1595, in _execute result = yield result File "/usr/lib/python3/dist-packages/tornado/gen.py", line 1133, in run value = future.result() File "/usr/lib/python3/dist-packages/univention/management/console/resources.py", line 966, in post await p.post() TypeError: object NoneType can't be used in 'await' expression ``` I guess this happens when the class `SetUserPreferences` is used, as it does not have an asynchronous `post` method.
regression from git:1c169b5aad6508004a81a1fdd03da19460365142 Bug #56198. This happens if univention.lib.umc.Client() from UCS 5.0-3 is used to set user preferences (e.g. favorites) against a UCS 5.0-4 based system. univention-management-console.yaml b016b22304c9 | fix(umc): fix setting user preferences e.g. favorites for old clients univention-management-console (12.0.31-16) b016b22304c9 | fix(umc): fix setting user preferences e.g. favorites for old clients
QA: - the traceback does no longer occur during the jenkins tests: OK
<https://errata.software-univention.de/#/?erratum=5.0x854>