[jboss-jira] [JBoss JIRA] (WFLY-8083) WebMigrateOperation makes invalid assumption about web subsystem "describe" output ordering

Brian Stansberry (JIRA) issues at jboss.org
Sat Feb 11 10:33:00 EST 2017


Brian Stansberry created WFLY-8083:
--------------------------------------

             Summary: WebMigrateOperation makes invalid assumption about web subsystem "describe" output ordering
                 Key: WFLY-8083
                 URL: https://issues.jboss.org/browse/WFLY-8083
             Project: WildFly
          Issue Type: Bug
          Components: Web (Undertow)
    Affects Versions: 10.1.0.Final
            Reporter: Brian Stansberry
            Assignee: Brian Stansberry


The WebMigrateOperation iterates over the operations produced by running 'describe' against the web subsystem, checking different operations and converting them. When it gets to a /subsystem=web/host=* op it processes that in its migrateVirtualHost method. But that method as part of its work checks all the other *already migrated* ops looking for path filters and the access log valve. If found it adds additional child resource add ops.

This is flawed because it assumes any add op for an access log valve or path filter will have already been created when migrateVirtualHost is run. That's not a valid assumption as there is nothing in the contract of the describe operation that guarantees such an order in its output. Work on WFCORE-2286 has revealed this.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list