[
https://issues.jboss.org/browse/WFCORE-4195?page=com.atlassian.jira.plugi...
]
Chao Wang commented on WFCORE-4195:
-----------------------------------
User {{test}} can not see the new server group without a reload operation because
[
ServerGroupScopedRoleWriteAttributeHandler.applyUpdateToRuntime()|https:/...]
(where it applies change to constraint) is not executed for write operation:
{code:java}
/core-service=management/access=authorization/server-group-scoped-role=maintainer-scope-role:write-attribute(name=server-groups,
value=[main-server-group,new-server-group]
{code}
It's supposed to be called from a Runtime step handler in
AbstractWriteAttributeHandler.execute(), but it's skipped at [if
(
requiresRuntime(context))|https://github.com/wildfly/wildfly-core/blob/7....]
check.
[
AbstractOperationContext.isHostCapableAddress()|https://github.com/wildfl...]
returns false as following activeStep.address does not match the address format _The
process is a HC, and the address of the operation is a subsystem in the host model or a
child thereof_
{code:java}
activeStep.address.size() >= 2 &&
activeStep.address.getElement(0).getKey().equals(HOST) &&
activeStep.address.getElement(1).getKey().equals(SUBSYSTEM)
{code}
{code:xml}
[
("core-service" => "management"),
("access" => "authorization"),
("server-group-scoped-role" => "maintainer-scope-role")
]
{code}
I'd like to confirm the correct behavior with [~brian.stansberry] first. If not
requiring a reload is preferable option as said in BZ, it seems that
ServerGroupScopedRoleWriteAttributeHandler should override execute() and apply change to
constraint without matching the activeStep.address format above ?
CLI/Admin Console does not prompt for a reload after adding a new
server-group to server-scoped-roles.
------------------------------------------------------------------------------------------------------
Key: WFCORE-4195
URL:
https://issues.jboss.org/browse/WFCORE-4195
Project: WildFly Core
Issue Type: Bug
Components: Management
Affects Versions: 7.0.0.Alpha4
Reporter: Chao Wang
Assignee: Chao Wang
Priority: Minor
CLI/Admin Console does not prompt for a reload after adding a new server-group to
server-scoped-roles.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)