Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Description
The "name" attributes for workmanager and bootstrap-context resources are read-write and should be read-only. They represent the value of the last element of the resource address and thus should not be changed independently of adding/removing the resource.
Where we find these "name" attributes we've been converting their handling such that when they get registered in ManagementResourceRegistration, it is done like this:
mrr.registerReadOnlyAttribute(NAME, ReadResourceNameOperationStepHandler.INSTANCE);
where "NAME" is an AttributeDefinition.
With that, the "add" handler for the resource shouldn't store the name in the model.