[
https://issues.redhat.com/browse/WFLY-13598?page=com.atlassian.jira.plugi...
]
Darran Lofthouse updated WFLY-13598:
------------------------------------
Description:
A resource adapter defined similar to:
{code:xml}
<resource-adapters>
<resource-adapter id="myrar.rar">
<archive>
myrar.rar
</archive>
<connection-definitions>
<connection-definition
class-name="org.wildfly.test.MyRar"
pool-name="connection-definition"/>
</connection-definitions>
</resource-adapter>
</resource-adapters>
{code}
Leads to an error:
{code}
13:48:11,932 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread)
WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "resource-adapters"),
("resource-adapter" => "myrar.rar"),
("connection-definitions" => "connection-definition")
]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.security.subject-factory",
"jboss.security.simple-security-manager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" =>
["jboss.resourceadapters.ra.\"myrar.rar\".connection-definition is missing
[jboss.security.simple-security-manager, jboss.security.subject-factory]"]
}
{code}
Resources should not depend on legacy security by default as it may not be there.
was:
A resource adapter defined similar to:
{code:xml}
<resource-adapter id="somerar.rar">
<archive>somerar.rar</archive>
<workmanager>
</workmanager>
<connection-definitions>
<connection-definition jndi-name="java:/eis/whitebox-permissiondd"
class-name="classname.classname"
pool-name="wb-permissiondd-connection">
<pool>
<max-pool-size>1000</max-pool-size>
</pool>
</connection-definition>
</connection-definitions>
</resource-adapter>
{code}
Leads to an error:
{code}
13:16:30,615 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread)
WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "resource-adapters"),
("resource-adapter" => "somerar.rar"),
("connection-definitions" => "wb-permissiondd-connection")
]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.security.subject-factory",
"jboss.security.simple-security-manager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" =>
["jboss.resourceadapters.ra.\"somerar.rar\".wb-permissiondd-connection is
missing [jboss.security.simple-security-manager, jboss.security.subject-factory]"]
}
{code}
Resources should not depend on legacy security by default as it may not be there.
Steps to Reproduce:
This can be reproduced with the following CLI commands against a freshly built WildFly:
{code}
/subsystem=security:remove
/extension=org.jboss.as.security:remove
/subsystem=resource-adapters/resource-adapter=myrar.rar:add(archive=myrar.rar)
/subsystem=resource-adapters/resource-adapter=myrar.rar/connection-definitions=connection-definition:add(class-name=org.wildfly.test.MyRar)
:reload
{code}
Hard coded dependencies from resource adapters to legacy security
sercvies.
---------------------------------------------------------------------------
Key: WFLY-13598
URL:
https://issues.redhat.com/browse/WFLY-13598
Project: WildFly
Issue Type: Bug
Components: JCA, Security
Affects Versions: 20.0.0.Final
Reporter: Darran Lofthouse
Assignee: Darran Lofthouse
Priority: Major
Fix For: 21.0.0.Beta1
A resource adapter defined similar to:
{code:xml}
<resource-adapters>
<resource-adapter id="myrar.rar">
<archive>
myrar.rar
</archive>
<connection-definitions>
<connection-definition
class-name="org.wildfly.test.MyRar"
pool-name="connection-definition"/>
</connection-definitions>
</resource-adapter>
</resource-adapters>
{code}
Leads to an error:
{code}
13:48:11,932 ERROR [org.jboss.as.controller.management-operation] (Controller Boot
Thread) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "resource-adapters"),
("resource-adapter" => "myrar.rar"),
("connection-definitions" => "connection-definition")
]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.security.subject-factory",
"jboss.security.simple-security-manager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" =>
["jboss.resourceadapters.ra.\"myrar.rar\".connection-definition is missing
[jboss.security.simple-security-manager, jboss.security.subject-factory]"]
}
{code}
Resources should not depend on legacy security by default as it may not be there.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)