[jboss-jira] [JBoss JIRA] (AS7-4525) "allowed-values" data not showing up in resource metadata

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Mon Apr 16 10:07:17 EDT 2012


Brian Stansberry created AS7-4525:
-------------------------------------

             Summary: "allowed-values" data not showing up in resource metadata
                 Key: AS7-4525
                 URL: https://issues.jboss.org/browse/AS7-4525
             Project: Application Server 7
          Issue Type: Bug
          Components: Domain Management
            Reporter: Brian Stansberry
            Assignee: Brian Stansberry
            Priority: Critical
             Fix For: 7.1.2.Final-redhat1


Jaikiran Pai reports:

IIRC some releases back, if an attribute in a domain model resource, 
allowed a certain set of values, then a read-resource-description via 
the CLI would show the allowed values. But checking against the latest 
upstream, I don't see it available any more. For example the 
timeout-unit attribute of the strict-max-bean-instance-pool resource no 
longer shows the allowed values:

[standalone at localhost:9999 /] 
/subsystem=ejb3/strict-max-bean-instance-pool=slsb-strict-max-pool:read-resource-description
{
     "outcome" => "success",
     "result" => {
         "description" => "A bean instance pool with a strict upper limit",
         "attributes" => {
             "timeout-unit" => {
                 "type" => STRING,
                 "description" => "The instance acquisition timeout unit",
                 "expressions-allowed" => false,
                 "nillable" => true,
                 "default" => "MINUTES",
                 "access-type" => "read-write",
                 "storage" => "configuration",
                 "restart-required" => "no-services"
             },
...


A quick look at the resource he mentioned shows that TimeUnitValidator is registered as the validator and it implements AllowedValuesValidator. The standard AttributeDefinition metadata generation logic is checking for AllowedValuesValidator and is using that to create the "allowed-values" metadata. So on the surface it looks ok; must be something subtle.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list