[jboss-jira] [JBoss JIRA] Created: (AS7-1982) CLI reports incorrect access-type, value-type, restart-required values

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Fri Sep 30 05:23:26 EDT 2011


CLI reports incorrect access-type, value-type, restart-required values
----------------------------------------------------------------------

                 Key: AS7-1982
                 URL: https://issues.jboss.org/browse/AS7-1982
             Project: Application Server 7
          Issue Type: Bug
            Reporter: Thomas Diesler


read-resource-description reports attribute values that are different from what is specified in code.
Below in brackets the expected value

{code}
[standalone at localhost:9999 /] /subsystem=osgi:read-resource-description(recursive=true)
{
    "outcome" => "success",
    "result" => {
        "description" => "The 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_JVM]         "restart-required" => "no-services", 
            "storage" => "configuration"
        }},
        "children" => {
            "configuration" => {
                "description" => "A configuration entry.",
                "model-description" => {"*" => {
                    "description" => "A configuration entry.",
                    "attributes" => {"entries" => {
                        "description" => "The list of configuration entries.",
                        "required" => true,
                        "type" => LIST,
[PROPERTY]                        "value-type" => UNDEFINED,
[read-write]                        "access-type" => "read-only",
                        "restart-required" => "RESTART_ALL_SERVICES",
                        "storage" => "configuration"
                    }}
                }}
            },
            "framework-property" => {
                "description" => "A framework property.",
                "model-description" => {"*" => {
                    "description" => "A framework property.",
                    "attributes" => {"value" => {
                        "description" => "The framework property value.",
                        "type" => STRING,
                        "required" => true,
[read-write]                        "access-type" => "read-only",
                        "restart-required" => "RESTART_ALL_SERVICES",
                        "storage" => "configuration"
                    }}
                }}
            },
            "capability" => {
                "description" => "A framework capability.",
                "model-description" => {"*" => {
                    "description" => "A framework capability.",
                    "attributes" => {"startlevel" => {
                        "description" => "The startlevel for the capability.",
                        "type" => INT,
                        "required" => false,
[read-write]                        "access-type" => "read-only",
                        "restart-required" => "RESTART_ALL_SERVICES",
                        "storage" => "configuration"
                    }}
                }}
            }
        }
    }
}
{code}

See the description setup in [OSGiSubsystemProviders|https://github.com/tdiesler/jboss-as/blob/0a02801a18f58e6a9280006f29c0fdbdd3d7b0df/osgi/service/src/main/java/org/jboss/as/osgi/parser/OSGiSubsystemProviders.java]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list