Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-442

AbstractMultiTargetHandler-based handlers do not propagate failures to the top level failure-description

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Alpha3
    • 1.0.0.Alpha13
    • Management
    • None

      An example is worth a thousand words:

      [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
      }
      

      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.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: