Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2022

Can not invoke read-resource-description on multi target address with a resource named server.

    XMLWordPrintable

Details

    Description

      To reproduce, invoke:

      /subsystem=undertow/server=*/http-listener=*:read-resource-description
      {
          "outcome" => "failed",
          "result" => [],
          "failure-description" => "WFLYCTL0030: No resource definition is registered for address [
          (\"subsystem\" => \"undertow\"),
          (\"server\" => \"*\")
      ]",
          "rolled-back" => true
      }
      

      The address is valid but the operation fails at org.jboss.as.controller.operations.global.GlobalOperationHandlers.RegistrationAddressResolver#executeMultiTargetChildren when checking the condition:

       if (path.getKey().equals(RUNNING_SERVER) && path.isWildcard() && newRemaining.size() > 0)
      

      The check was added for WFCORE-948 but makes any multi target operation with a server resource fails (such as Undertow server or messaging-activemq server resources).

      Attachments

        Issue Links

          Activity

            People

              jmesnil1@redhat.com Jeff Mesnil
              jmesnil1@redhat.com Jeff Mesnil
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: