Univention Bugzilla – Bug 52204
The Veyon API client needs to handle idle timeouts
Last modified: 2020-12-22 08:29:49 CET
A connection to the Veyon API is invalidated after a certain idle time. The client should be configurable with such an idle timeout value and fetch a new connection in advance.
Implemented on oschwieg/4.4/52204 You can now define an idle timeout. If a connection was not used for the specified time, a new connection is created and cached. Please QA and REOPEN for merge&build
QA -> Looks good -> REOPEN for merge & build As discussed, add the missing unittest (see last code-block in this comment) and then merge & build. Code -> Looks good build & install -> OK the unittests are passing during override_dh_auto_test the test-scenarios were also tested manually: client.remove_session("localhost") -> removes the session as expected idle-timeout -> new session client._session_cache["localhost"] = None client._get_connection_uid(renew_session=True) # -> new session client._session_cache["localhost"] = None client._get_connection_uid(renew_session=False) # raises VeyonError: The currently cached connection is invalid
Package: ucs-school-veyon-client Version: 1.0.1-1A~4.4.0.202010140905 Branch: ucs_4.4-0 Scope: ucs-school-4.4 Unit test was added.
OK: unit tests OK: merge, changelog and package build OK: update acf477db3 to unit test without package rebuild was tested OK: advisory
UCS@school 4.4 v7 (errata 2020-10-14) has been released. https://docs.software-univention.de/changelog-ucsschool-4.4v7-de.html If this error occurs again, please clone this bug.