Details
-
Bug
-
Resolution: Done
-
Major
-
7.0.2.Final
-
None
Description
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)
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