Werk #14474: Fix parent renaming for hosts in subfolders

Component Setup
Title Fix parent renaming for hosts in subfolders
Date Aug 24, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p13 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p29 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

The renaming of hosts includes the renaming of parents, if the host that is renamed is a parent of other hosts.

This renaming was faulty if the child host was in a subfolder that inherited the parent attribute from a parent folder, leading to messages like "The parent "FOO" of the host "BAR" is not defined on this site" on activation of changes.

Note that the parent was renamed correctly in the parent folder where the attribute was effectivly set. Saving the folder properties again after renaming fixed the mentioned error message.

To the list of all Werks