Werk #15099: crash when calling bulk-delete via the REST API

Component REST API
Title crash when calling bulk-delete via the REST API
Date Oct 10, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p13 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p36 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Previously, when doing a bulk_delete operation via the REST API, an exception could occur under certain conditions, most notably one where the DCD (Dynamic Configuration Daemon) is configured to automatically delete hosts without piggyback data.

If the error occured, in the logs these lines are occuring:

PermissionError: Required permissions not declared for this endpoint.
Endpoint: <Endpoint cmk.gui.plugins.openapi.endpoints.host_config:bulk_delete>
Permission: general.see_all
Used permission: {'wato.all_folders', 'general.see_all', 'wato.manage_hosts'}
Declared: AllPerm([{wato.manage_hosts}, {wato.all_folders}?)

This werk fixes this problem.

To the list of all Werks