I have tried to run the same on a 2.2.0p12 CRE installation, in the same way as i did above on my 2.1.0p35 site.
The result is basically the same error as @Tobi-ADS is getting using the “~FOLDER~SUBFOLDER” -convention.
{
"title": "Permission denied",
"status": 403,
"detail": "You lack the permissions to move host cmk-test.mydomain.tld to ~mainfolder~subfolder."
}
Same 403 error happens when i tried the “~FOLDER/SUBFOLDER” -convention i now get:
So behavior has changed as to 2.1.0pX → 2.2.0pX…
If i pull up the folder information via the API i get the following result:
"domainType": "folder_config",
"id": "~mainfolder~subfolder",
"title": "SubFolder",
"members": {},
"extensions": {
"path": "/mainfolder/subfolder",
"attributes": {
"meta_data": {
"created_at": "2023-10-25T23:38:13.518988+00:00",
"updated_at": "2023-10-25T23:38:13.520776+00:00",
"created_by": "MHonkoop"
}
If i compare this to the output of my 2.1.0p35 host i dont see any difference to the (test-)subfolder.
I have checked if the API docs have changed ( since i went from going OK on a 2.1.0pX version onto a 2.2.0pX), but i could not see any changes.
Maybe one at CMK can give us insight as to what might have been changed/reworked from 2.1.0pX → 2.2.0pX ?
@Sara , @martin.hirschvogel ?
Additional, i have tried moving the host ( was op top/root level) to move it down just to ‘MainFolder’ (works) and then move it again from there to “Subfolder”, the result was the same 403 error on last step as attempting a direct move into the SubFolder.