Details
-
Bug
-
Resolution: Done
-
Major
-
8.0.0.Alpha2
-
None
Description
The problem is in OverrideDescriptionCombiner adding the overridden children to the attributes rather than to the children. For background, this was my initial mail on the subject.
-------
I found this when trying to read the role based access control settings for the whole of WIldFly. I have worked around this with a hack on my https://github.com/kabir/wildfly/commits/rbac-play branch, which is called "Temp commit, work around problems in /subsystem=datasources/data-source=* definition of statistics". The underlying problem seems to be that there is a problem with the resource definition for this attribute/child type. Apart from this there are no other problems when running with standalone-full-ha.xml.
The 'statistics' appears as an attribute when doing a read-resource-description
[standalone@localhost:9990 /] /subsystem=datasources/data-source=ExampleDS:read-resource-description
{
"outcome" => "success",
"result" => {
"description" => "A JDBC data-source configuration",
"attributes" => {
"share-prepared-statements" =>
,
– SNIP
"statistics" =>
{ "description" => "Runtime statistics provided by the resource adapter.", "access-type" => "read-only", "storage" => "configuration" } },
"operations" => undefined,
"children" => {"connection-properties" => {
"description" => "The connection-properties element allows you to pass in arbitrary connection properties to the Driver.connect(url, props) method",
"model-description" => undefined
}}
}
}
However, it does not appears as a child but not as an attribute:
[standalone@localhost:9990 /] /subsystem=datasources/data-source=ExampleDS:read-children-names(child-type=statistics)
{
"outcome" => "success",
"result" => [
"jdbc",
"pool"
]
}[standalone@localhost:9990 /] /subsystem=datasources/data-source=ExampleDS:read-attribute(name=statistics)
{
"outcome" => "failed",
"failure-description" => "JBAS014640: 'statistics' is a registered child of resource ([
(\"subsystem\" => \"datasources\"),
(\"data-source\" => \"ExampleDS\")
])",
"rolled-back" => true
}
In read-resource it appears as a child:
[standalone@localhost:9990 /] /subsystem=datasources/data-source=ExampleDS:read-resource(recursive=true, include-runtime=true)
{
"outcome" => "success",
"result" => {
---- SNIP ----
"statistics" => {
"jdbc" =>
,
"pool" =>
}
}
}
[standalone@localhost:9990 /] /subsystem=datasources/data-source=ExampleDS/statistics=jdbc:read-resource(include-runtime=true)
{
"outcome" => "success",
"result" =>
}