Univention Bugzilla – Bug 44647
Broken threading in adtakeover UMC module causes error
Last modified: 2020-06-22 16:09:58 CEST
(In reply to Felix Botner from comment #5) > OK - i still get an "error" but at least the umc server handles this now by > itself (restarts the module) (In reply to Florian Best from comment #4) > I have a reliable way to reproduce this error: > > Execute the following command in a shell: > # while true; do curl > http://Administrator:Univention.1@localhost/univention/command/adtakeover/ > progress & sleep 0.1; done > > During this command execute two or three times immediately after another the > following command: > > # curl > http://Administrator:Univention.1@localhost/univention/command/adtakeover/ > connect -H 'Content-Type: application/json' -d '{"options": {"ad_username": > "Administrator", "ad_password": "univention", "ip": "10.200.27.112"}}' > > This will cause the UMC-Server crash. > The bug is triggered by wrong error handling in combinations with threads in > the adtakeover module. The module process somehow ends itself which causes > that all request infos are gone but the state machine/socket buffer still > contains one response which can't be mapped to any request anymore causing > this exception. +++ This bug was initially created as a clone of Bug #44365 +++