Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: 6bc05bad85344e09687be44829f41ad9c0c7f3cd
https://github.com/tribe29/checkmk/commit/6bc05bad85344e09687be44829f41ad9c…
Author: Christoph Rauch <christoph.rauch(a)tribe29.com>
Date: 2021-10-22 (Fri, 22 Oct 2021)
Changed paths:
A .werks/13076
M cmk/gui/plugins/openapi/restful_objects/decorators.py
Log Message:
-----------
13076 FIX REST API, extend lock to encompass validation logic
This Werk fixes a very severe data inconsistency problem in the REST API.
Previously, only the actual working code of the individual endpoints were
locked, but the validation logic which gets executed before the endpoints
didn't fall into that locking scope. This logic could then trigger a cache
load which could lead to data inconsistency and even data loss when using
the REST API highly concurrently.
The observed effects were:
* when moving hosts concurrently, some hosts may disappear
* when moving hosts concurrently, some hosts may end up in multiple folders
* when editing hosts, spurious 421 or 401 responses could appear
The locks have now been modified to encompass also the validation logic.
This Werk fixes the afore mentioned problems.
There are no further actions to be taken.
Change-Id: I4323df250c4202ebb88c1d0a87694741e9eccb6e