Groups created with the old NethGUI opened into Cockpit generates this error:
UsersGroups.vue:2910 Uncaught TypeError: Cannot read property 'editable' of undefined
at UsersGroups.vue:2910
at Function.<anonymous> (nethserver.js:102)
at s (cockpit.min.js:963)
at cockpit.min.js:975
at n (cockpit.min.js:881)
The problem is caused by the result of this command that do not contains editable parameter.
I think it can be enough to modify lines 68-70 of system-roles/read api as follow:
if ($counter == 0) { #we have no match, this role is not known
print encode_json({"system" => [],"status" => {'editable' => 1},"applications" => []});
}
It’s a cosmetic bug: the UI behaves correctly but the Javascript console displays an error.
I think the editable flag doesn’t make sense could be ignored for groups.