[
https://issues.jboss.org/browse/WFCORE-3039?page=com.atlassian.jira.plugi...
]
Brian Stansberry commented on WFCORE-3039:
------------------------------------------
I think the problem probably relates to the fact that
OperationContext.deregisterCapabilityRequirement does not expose an
'attributeName' param so when the undefine-attribute removes the requirement it
can get messed up. See CapabilityRegistry.removeRequirement. However, before anything can
even be done with that, RequirementRegistration.registrationPoints is a
Map<PathAddress, RegistrationPoint> so if 2 attributes for the same resource
register, there will only be one entry in the map.
Capability requirement can be lost if two attributes on same resource
reference the same capability
---------------------------------------------------------------------------------------------------
Key: WFCORE-3039
URL:
https://issues.jboss.org/browse/WFCORE-3039
Project: WildFly Core
Issue Type: Bug
Components: Management
Reporter: Darran Lofthouse
Assignee: Radovan Netuka
With the following three commands the server becomes unable to boot due to a missing
dependency: -
{noformat}
/subsystem=elytron:write-attribute(name=initial-providers, value=combined-providers)
/subsystem=elytron:undefine-attribute(name=final-providers)
/subsystem=elytron/aggregate-providers=combined-providers:remove
{noformat}
If however I execute :reload after the first two commands, the final command will fail
correctly.
{noformat}
[standalone@localhost:9990 /]
/subsystem=elytron/aggregate-providers=combined-providers:remove
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0367: Cannot remove capability
'org.wildfly.security.providers.combined-providers' as it is required by other
capabilities:
capability 'org.wildfly.security.elytron' requires it for attribute
'initial-providers' at address '/subsystem=elytron'",
"rolled-back" => true
}
{noformat}
I am only listing the 'Domain Management' component as I believe the security
example is just the reproducer.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)