Werk #13076: REST API missing and duplicated hosts problem

Component REST API
Title REST API missing and duplicated hosts problem
Date Oct 18, 2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.0.0p13 2.1.0b1
Level Major Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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.

To the list of all Werks