Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10188

Setting Undertow default server needs validation of provided server to avoid broken Wildfly configuration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.0.1.Final, 12.0.0.Final, 13.0.0.Final, 20.0.0.Beta1
    • Web (Undertow)
    • None
      1. /subsystem=undertow/server=test-server:add
      2. /subsystem=undertow:write-attribute(name=default-server, value=test-server)
      3. reload

    Description

      Undertow server needs default-host to be set to be able to be used as Undertow subsystem default-server otherwise Wildfly would not start due to:

      ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=undertow' are not available:
          org.wildfly.undertow.host.test-server.default-host; Possible registration points for this capability: 
      		/subsystem=undertow/server=*/host=*
      

      This is dangerous as after calling a reload operation, the server simply fails and crashes. One can accidentaly kill the server with this and !manual! fix is necessary to the configuration to be able to start server again.

      I think that there should be some check that configuration of the newly created server is complete and valid before it is set as a default server.

      Attachments

        Issue Links

          Activity

            People

              flaviarnn Flavia Rainone
              pjelinek@redhat.com Pavel Jelinek
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: