]
Heiko Braun updated WFCORE-442:
-------------------------------
Fix Version/s: 1.0.0.Beta1
AbstractMultiTargetHandler-based handlers do not propagate failures
to the top level failure-description
--------------------------------------------------------------------------------------------------------
Key: WFCORE-442
URL:
https://issues.jboss.org/browse/WFCORE-442
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Affects Versions: 1.0.0.Alpha13
Reporter: Brian Stansberry
Assignee: Heiko Braun
Fix For: 1.0.0.Beta1
An example is worth a thousand words:
{code}
[standalone@localhost:9990 /] /path=*:query(where={read-only=1})
{
"outcome" => "failed",
"result" => [
{
"address" => [("path" =>
"jboss.server.temp.dir")],
"outcome" => "failed",
"result" => {
"name" => "jboss.server.temp.dir",
"path" =>
"/Users/hbraun/dev/prj/wildfly-core/core-build/target/wildfly-core-1.0.0.Alpha14-SNAPSHOT/standalone/tmp",
"read-only" => true,
"relative-to" => undefined
},
"rolled-back" => true
},
{
"address" => [("path" => "user.home")],
"outcome" => "failed",
"result" => {
"name" => "user.home",
"path" => "/Users/hbraun",
"read-only" => true,
"relative-to" => undefined
},
"rolled-back" => true
},
{
"address" => [("path" =>
"jboss.server.base.dir")],
"outcome" => "failed",
"result" => {
"name" => "jboss.server.base.dir",
"path" =>
"/Users/hbraun/dev/prj/wildfly-core/core-build/target/wildfly-core-1.0.0.Alpha14-SNAPSHOT/standalone",
"read-only" => true,
"relative-to" => undefined
},
"rolled-back" => true
},
{
"address" => [("path" => "java.home")],
"outcome" => "failed",
"result" => {
"name" => "java.home",
"path" =>
"/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre",
"read-only" => true,
"relative-to" => undefined
},
"rolled-back" => true
},
{
"address" => [("path" => "user.dir")],
"outcome" => "failed",
"result" => {
"name" => "user.dir",
"path" =>
"/Users/hbraun/dev/prj/wildfly-core/core-build/target/wildfly-core-1.0.0.Alpha14-SNAPSHOT",
"read-only" => true,
"relative-to" => undefined
},
"rolled-back" => true
},
{
"address" => [("path" =>
"jboss.server.data.dir")],
"outcome" => "failed",
"result" => {
"name" => "jboss.server.data.dir",
"path" =>
"/Users/hbraun/dev/prj/wildfly-core/core-build/target/wildfly-core-1.0.0.Alpha14-SNAPSHOT/standalone/data",
"read-only" => true,
"relative-to" => undefined
},
"rolled-back" => true
},
{
"address" => [("path" =>
"jboss.home.dir")],
"outcome" => "failed",
"result" => {
"name" => "jboss.home.dir",
"path" =>
"/Users/hbraun/dev/prj/wildfly-core/core-build/target/wildfly-core-1.0.0.Alpha14-SNAPSHOT",
"read-only" => true,
"relative-to" => undefined
},
"rolled-back" => true
},
{
"address" => [("path" =>
"jboss.server.log.dir")],
"outcome" => "failed",
"result" => {
"name" => "jboss.server.log.dir",
"path" =>
"/Users/hbraun/dev/prj/wildfly-core/core-build/target/wildfly-core-1.0.0.Alpha14-SNAPSHOT/standalone/log",
"read-only" => true,
"relative-to" => undefined
},
"rolled-back" => true
},
{
"address" => [("path" =>
"jboss.server.config.dir")],
"outcome" => "failed",
"result" => {
"name" => "jboss.server.config.dir",
"path" =>
"/Users/hbraun/dev/prj/wildfly-core/core-build/target/wildfly-core-1.0.0.Alpha14-SNAPSHOT/standalone/configuration",
"read-only" => true,
"relative-to" => undefined
},
"rolled-back" => true
},
{
"address" => [("path" =>
"jboss.controller.temp.dir")],
"outcome" => "failed",
"result" => {
"name" => "jboss.controller.temp.dir",
"path" =>
"/Users/hbraun/dev/prj/wildfly-core/core-build/target/wildfly-core-1.0.0.Alpha14-SNAPSHOT/standalone/tmp",
"read-only" => true,
"relative-to" => undefined
},
"failure-description" => "Illegal argument for attribute
'read-only'. Expected type BOOLEAN",
"rolled-back" => true
}
],
"rolled-back" => true
}
{code}
One item in the set has a failure description but the overall response does not.
ReadResourceDescriptionHandler handles similar things but has logic for creating an
overall failure-description.