Werk #17817: UpdateAction: remove invalid user profiles

Component Setup
Title UpdateAction: remove invalid user profiles
Date Mar 20, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0p30
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p41
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

In previous versions of Checkmk, when attempting to login with an invalid userid, a profile directory was created (Werk #16389). However, this could cause problems when updating to 2.2, as these profile directory names could contain invalid characters. This werk addresses this issues by first deleting any invalid user profile from disk that isn't also a valid Checkmk user.

To the list of all Werks