[
https://issues.jboss.org/browse/WFCORE-2091?page=com.atlassian.jira.plugi...
]
Lin Gao commented on WFCORE-2091:
---------------------------------
The problem in this case is that there is a +RejectAttributeChecker+ registered for
attribute: +connection-url+ under resource:
+/subsystem=datasources/data-source=ExampleDS+, when
{code:java}
/host=eap640/server=server-one/subsystem=datasources/data-source=ExampleDS:test-connection-in-pool
{code}
is called, this +test-connection-in-pool+ operation is to be transformed, which delegates
to
[
AttributeTransformationRule.doTransform()|https://github.com/wildfly/wild...]
method. This method checks whether the +connection-url+ attribute should be rejected or
not. Apparently, this operation does not have a parameter named +connection-url+, so it is
wrong to be rejected here.
Mixed domain with EAP 6 slaves: data sources operations broken
--------------------------------------------------------------
Key: WFCORE-2091
URL:
https://issues.jboss.org/browse/WFCORE-2091
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Reporter: Lin Gao
Assignee: Lin Gao
Priority: Blocker
Run a mixed domain where EAP 7.1.0.DR9 is the master and EAP 6.4.0/6.3.0/6.2.0 is a slave
server. Operations on data sources are broken due to incompatibility of models:
{noformat}
[domain@127.0.0.100:9990 /]
/host=eap640/server=server-one/subsystem=datasources/data-source=ExampleDS:test-connection-in-pool
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0297: Transforming operation {
\"address\" => [
(\"host\" => \"eap640\"),
(\"server\" => \"server-one\"),
(\"subsystem\" => \"datasources\"),
(\"data-source\" => \"ExampleDS\")
],
\"operation\" => \"test-connection-in-pool\",
\"operation-headers\" => {
\"caller-type\" => \"user\",
\"access-mechanism\" => \"NATIVE\",
\"domain-uuid\" =>
\"ae186a65-8c76-41d0-bd23-79154b5f92f7\"
}
} at resource [
(\"host\" => \"eap640\"),
(\"server\" => \"server-one\"),
(\"subsystem\" => \"datasources\"),
(\"data-source\" => \"ExampleDS\")
] to subsystem 'datasources' model version '1.3.0' -- attributes
[connection-url] WFLYCTL0336: The following attributes are nillable in the current model
but must be defined in the target model version: [connection-url]",
"rolled-back" => true,
"result" => [true]
}
{noformat}
The fix for JBEAP-5770 seems to be the cause.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)