Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2081

read-resource with recurse and include-runtime is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.1.0.CR1
    • 7.1.0.Beta1
    • Domain Management
    • None

      When I add recursive=true to :read-resource the runtime attributes disappear.

      E.g.

      subsystem=osgi] :read-resource(include-runtime=true)
      {
          "outcome" => "success",
          "result" => {
              "activation" => "eager",
              "startlevel" => 1,
              "bundle" => {
                  "19" => undefined,
                  "17" => undefined,
                  "18" => undefined,
      

      The above works, but adding recursive=true produces:

      subsystem=osgi] :read-resource(include-runtime=true,recursive=true)
      {
          "outcome" => "success",
          "result" => {
              "activation" => "eager",
              "bundle" => {
                  "20" => {},
                  "21" => {},
      

      The startlevel attribute is gone and the bundle resources are empty.

      Note that when I run :read-children-resources it does return the correct information

      subsystem=osgi] :read-children-resources(child-type=bundle,include-runtime=true)
      {
          "outcome" => "success",
          "result" => {
              "0" => {
                  "id" => 0L,
                  "startlevel" => 0,
                  "state" => "ACTIVE",
                  "symbolic-name" => "system.bundle",
                  "version" => "0.0.0"
              },
              "1" => {
                  "id" => 1L,
                  "startlevel" => 1,
                  "state" => "INSTALLED",
                  "symbolic-name" => "javaee.api",
                  "version" => "0.0.0"
              },
      

              emuckenhuber_jira Emanuel Muckenhuber (Inactive)
              dhildenb@redhat.com David Hildenbrand
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: