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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Beta1
    • 7.0.2.Final
    • Domain Management
    • 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)

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

      Attachments

        Activity

          People

            bstansbe@redhat.com Brian Stansberry
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: