[jboss-jira] [JBoss JIRA] (AS7-2648) CoreResourceRegistration.getProxyController(s) can't traverse submodels that are registered with a wildcard

Brian Stansberry (Created) (JIRA) jira-events at lists.jboss.org
Tue Nov 15 18:22:41 EST 2011


CoreResourceRegistration.getProxyController(s) can't traverse submodels that are registered with a wildcard
-----------------------------------------------------------------------------------------------------------

                 Key: AS7-2648
                 URL: https://issues.jboss.org/browse/AS7-2648
             Project: Application Server 7
          Issue Type: Bug
          Components: Domain Management
    Affects Versions: 7.0.2.Final
            Reporter: Brian Stansberry
             Fix For: 7.1.0.CR1


CoreResourceRegistration.getProxyController and getProxyControllers gives up traversing the tree if it hits a level that only has a wildcard registration.

John Bailey 5:03 PM 
This address -->  [("host" => "slave"), ("server" => "server-one")]
5:03 PM
then calling context.getResourceRegistration().getProxyController(address)
5:03 PM
Always comes back null.
Brian Stansberry 5:04 PM 
and you're on "slave", right?
John Bailey 5:04 PM 
yeah..
Brian Stansberry 5:05 PM 
that's very odd; I don't know why that would not work
John Bailey 5:06 PM 
yeah.  I thought it was working, but I just can't get anything back.
Brian Stansberry 5:06 PM 
try this
5:09 PM
This address -->  [("host" => "slave")]
5:10 PM
hostReg = context.getResourceRegistration().getSubmodel(address)
5:10 PM
This address -->  [("server" => "server-one")]
5:10 PM
hostReg.getProxyController(address);
John Bailey 5:11 PM 
ok.  One sec.
Brian Stansberry 5:11 PM 
I think it's the ....
5:11 PM
if (childRegistry == null) {
           //Don't handle '*' for now
           return null;
       }
5:11 PM
issue
5:12 PM
when you ask the root, it has a normal submodel registered for host=*
5:12 PM
not for host=slave
5:12 PM
so it hits that block and gives up, rather than going on to the child
5:16 PM
I'm pretty sure that //Don't handle '*' for now is a bug
5:17 PM
I don't see why it couldn't handle '*' like the other methods
John Bailey 5:17 PM 
Yeah..  That worked,
Brian Stansberry 5:17 PM 
cool

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