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

Cannot remove a undertow server resource at one time

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 16.0.0.Final
    • Fix Version/s: None
    • Component/s: Web (Undertow)
    • Labels:
      None
    • Workaround Description:
      Hide

      Remove child attributes of a host attribute before removing a server/host attribute.

      Ex for default standalone.xml

      /subsystem=undertow/server=default-server/host=default-host/location=\/:remove()
      /subsystem=undertow/server=default-server/host=default-host/filter-ref=x-powered-by-header:remove
      /subsystem=undertow/server=default-server/host=default-host/filter-ref=server-header:remove()
      :reload

      Show
      Remove child attributes of a host attribute before removing a server/host attribute. Ex for default standalone.xml /subsystem=undertow/server=default-server/host=default-host/location=\/:remove() /subsystem=undertow/server=default-server/host=default-host/filter-ref=x-powered-by-header:remove /subsystem=undertow/server=default-server/host=default-host/filter-ref=server-header:remove() :reload

      Description

      Cannot remove a server attribute.

      [standalone@localhost:9990 /] /subsystem=undertow/server=default-server:remove()
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0171: Removing services has lead to unsatisfied dependencies:
      Service jboss.undertow.server.default-server.default-host was depended upon by service jboss.undertow.server.default-server.default-host.filter-ref.x-powered-by-header, service jboss.undertow.server.default-server.default-host.location.
      /, service jboss.undertow.server.default-server.default-host.filter-ref.server-header",                                                                                                                                                    
          "rolled-back" => true,
          "response-headers" => undefined
      }
      

      However, it can be removed executing same command again.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  spyrkob Bartosz Spyrko-Smietanko
                  Reporter:
                  spyrkob Bartosz Spyrko-Smietanko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated: