]
Tomaz Cerar updated WFCORE-1921:
--------------------------------
Workaround Description:
you need to quote numbers
so
{noformat}
/subsystem=elytron/aggregate-role-mapper=aggregateRoleMapper001:add(role-mappers=["001","111"])
{noformat}
Problem with capability-reference to resource whose name is number
with ZERO(s) prefix.
---------------------------------------------------------------------------------------
Key: WFCORE-1921
URL:
https://issues.jboss.org/browse/WFCORE-1921
Project: WildFly Core
Issue Type: Bug
Components: CLI, Domain Management
Reporter: Hynek Švábek
Assignee: Tomaz Cerar
Problem with resources which name contains only NUMBERS.
Particularly the number which beginning with ZERO(s).
*Scenario*
* I have resources which name contains only numbers with ZERO(s) prefix
* I want set capability-reference to it
* e.g.
/subsystem=elytron/aggregate-role-mapper001=aggregateRoleMapper:add(role-mappers=[001,111])
*Actual result*
{code}
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0369: Required capabilities are
not available:
org.wildfly.security.role-mapper.1; There are no known registration points which can
provide this capability.",
"rolled-back" => true
}
{code}
*Expected result*
{code}
Success
{code}
*NOTE*
In my opinion is this global problem.
I tried it with another subsystem and problem is there too.
{code}
/subsystem=datasources/data-source=001:add(connection-url="url",
jndi-name="java:jboss/datasources/001", driver-name=h2)
/subsystem=infinispan/cache-container=server/local-cache=default/store=string-jdbc:add(data-source=001)
{code}