Bug 47239 - UMCP auth requests get lost/unanswered due to a racing condition
UMCP auth requests get lost/unanswered due to a racing condition
Status: RESOLVED DUPLICATE of bug 43633
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on: 46870
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-23 22:33 CEST by Sönke Schwardt-Krummrich
Modified: 2023-06-09 16:39 CEST (History)
5 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.029
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
test46870.py (658 bytes, text/x-python)
2018-06-23 22:33 CEST, Sönke Schwardt-Krummrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2018-06-23 22:33:39 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.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2018-06-23 22:40:21 CEST
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).
Comment 2 Florian Best univentionstaff 2023-06-09 16:39:03 CEST
obsolete by Bug #43633

*** This bug has been marked as a duplicate of bug 43633 ***