Univention Bugzilla – Full Text Bug Listing |
Summary: | univention.admin.modules.update() is not thread safe | ||
---|---|---|---|
Product: | UCS | Reporter: | Florian Best <best> |
Component: | UDM (Generic) | Assignee: | Florian Best <best> |
Status: | CLOSED FIXED | QA Contact: | Philipp Hahn <hahn> |
Severity: | normal | ||
Priority: | P5 | CC: | scheinig, schwardt, troeder |
Version: | UCS 4.2 | ||
Target Milestone: | UCS 4.2-2-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: |
https://forge.univention.org/bugzilla/show_bug.cgi?id=35858 https://forge.univention.org/bugzilla/show_bug.cgi?id=45284 |
||
What kind of report is it?: | Development Internal | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | 2017101021000294 | Bug group (optional): | |
Max CVSS v3 score: | |||
Attachments: |
udm_init_thread_save.py
patch |
Description
Florian Best
2017-10-13 16:39:10 CEST
Reproducer: import univention.admin.modules import threading import time def reload(): while True: time.sleep(0.5) univention.admin.modules.update() thread = threading.Thread(target=reload) thread.start() lo, po = univention.admin.uldap.getMachineConnection() while True: time.sleep(0.2) univention.admin.modules.init(lo, po, univention.admin.modules.get('users/user')) Created attachment 9248 [details]
udm_init_thread_save.py
Created attachment 9249 [details]
patch
Patch slightly adapted and merged. univention-directory-manager-modules (12.0.18-13) 9ce6c33c4ed9 | Bug #45540: Merge branch 'fbest/45540-thread-safe-modules-update' into 4.2-2 436574accaa7 | Bug #45540: fix thread safety of univention.admin.modules.update() univention-directory-manager-modules.yaml 9ce6c33c4ed9 | Bug #45540: Merge branch 'fbest/45540-thread-safe-modules-update' into 4.2-2 227bca684ad1 | YAML Bug #45540 OK: errata-announce -V --only univention-directory-manager-modules.yaml FIXED: univention-directory-manager-modules.yaml → 602919ea99 OK: Jenkins OK: Code-Review OK: 436574accaa7 |