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

restart-required value only gets transformed for read-write attributes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • Server
    • None

    Description

      Looking at the output from read-resource-description I noticed that the value of restart-required sometimes is capitalized and in other cases it's not. E.g. take the following subsystem:

      [standalone@localhost:9999 subsystem=osgi] :read-resource-description(recursive=true)
      {
          "outcome" => "success",
          "result" => {
              "description" => "The OSGi subsystem configuration.",
              "head-comment-allowed" => true,
              "tail-comment-allowed" => true,
              "namespace" => "urn:jboss:domain:osgi:1.0",
              "attributes" => {
                  "activation" => {
                      "description" => "Activation flag for the OSGi subsystem. Possible values: lazy, eager.",
                      "type" => STRING,
                      "default" => "LAZY",
                      "access-type" => "read-write",
                      "restart-required" => "no-services",
                      "storage" => "configuration"
                  },
                  "startlevel" => {
                      "description" => "The current Start Level of the OSGi Framework. Changing this value will change the start level of the Framework accordingly. ",
                      "type" => INT,
                      "access-type" => "read-write",
                      "restart-required" => "no-services",
                      "storage" => "runtime"
                  }
              },
              "children" => {
                  "configuration" => {
                      "description" => "A Configuration Admin Service entry. The identity of the entry defines the PID (Persistent Identifier) that the entry is associated with.",
                      "model-description" => {"*" => {
                          "description" => "A Configuration Admin Service entry. The identity of the entry defines the PID (Persistent Identifier) that the entry is associated with.",
                          "attributes" => {"entries" => {
                              "description" => "The list of configuration entries.",
                              "required" => true,
                              "type" => LIST,
                              "value-type" => UNDEFINED,
                              "access-type" => "read-only",
                              "restart-required" => "RESTART_NONE",
                              "storage" => "configuration"
                          }}
                      }}
                  },
      ...

      You can see that for the same AttributeAccess.Flag.RESTART_NONE value in some cases it's transformed into 'no-services' and in other cases it's left the way it is.

      I isolated this issue to org.jboss.as.controller.operations.global.GlobalOperationHandlers (~line 830) and noticed that only in the case of a read-write attribute this transformation is applied. That seems incorrect... I'm wondering why do we do this translation at all and not simply return the Flag.toString()?

      Attachments

        Issue Links

          Activity

            People

              jgreene@redhat.com Jason Greene
              dhildenb@redhat.com David Hildenbrand
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: