Univention Bugzilla – Bug 47239
UMCP auth requests get lost/unanswered due to a racing condition
Last modified: 2023-06-09 16:39:03 CEST
Created attachment 9572 [details] test46870.py I attached a test script at bug 46870 (test46870.py) that sends 500 parallel authentication requests with 0.2 seconds delay between them. Result: the authentication works... but I found a racing condition. If auth requests come in too fast, the might get lost. In my test 34 of 500 requests weren't answered. +++ This bug was initially created as a clone of Bug #46870 +++ When you are logged in via SSO and start an exam you have to enter your password again, since the module has the requirePassword decorator. I observed a strange behavior on my ucsschool 4.3 machine where the POST request for authenticating the user does not get resolved and the wizard does not progress. After cancelling and returning to the main page the web app still gets progress responses until you hit F5. Just before the page refreshes you can see a dialog saying "Error with the connection". After refreshing the page and trying the exam mode again all of a sudden it works like a charm. As soon as you log out from the website you have to redo this procedure.
It looks like self._auth_response_in or self._auth_response gets overwritten by another thread → an auth request gets lost. (See diff of bug 46870).
obsolete by Bug #43633 *** This bug has been marked as a duplicate of bug 43633 ***