]
Brian Stansberry commented on WFLY-11484:
-----------------------------------------
Version 2.1.0.Final and earlier had a bug and 2.1.1.Final fixes it.
I don't see how anything could be done that would change how a fixed 3.6.2 version of
the Resteasy testsuite would run against WF 15, as it too is finished. All that could
happen would be some change in WF or WF Core master. And I don't see why we'd
revert a bug fix in WF Core in order to work around an already resolved bug in
wildfly-arquillian-container-remote.
A bug fix in WildFly Core 7 does not affect any EAP point releases, as none of them
consume WildFly Core 7.
Arquillian is broken because ClI no longer lists undertow's
"context-root", "server", or "virtual-host"
-------------------------------------------------------------------------------------------------------
Key: WFLY-11484
URL:
https://issues.jboss.org/browse/WFLY-11484
Project: WildFly
Issue Type: Bug
Components: Management, Web (Undertow)
Affects Versions: 15.0.0.Beta1, 15.0.0.Final
Reporter: R Searls
Assignee: Jeff Mesnil
Priority: Major
The CLI no longer list 3 important undertow fields, "context-root",
"server", or "virtual-host". This has broken arquillian's
ability to
configure and run tests. Arquillian is no longer able to find
ArquillianServletRunner because context-root is missing. This causes
the following exception to be thrown for tests.
{code:java}
java.lang.IllegalArgumentException: ArquillianServletRunner not found. Could
not determine ContextRoot from ProtocolMetadata, please contact
DeployableContainer developer.
{code}
In org.jboss.as.arquillian.container.ManagementClient.readResource this
cli cmd is created.
{code:java}
{
"operation" => "read-resource",
"recursive" => "true",
"address" => [("deployment" =>
"AnotherPublisherResponseTest.war")]
}
{code}
Method ManagementClient.executeForResult executes this cmd
and returns the results. The results are different between wildfly-14.0.0.Final
and wildfly-15.0.0.Beta1+. Subsystem undertow no longer prints the
values for "context-root", "server", or "virtual-host".
The wildfly-14.0.0.Final output is
{code:java}
{
....
"enabled" => true,
"enabled-time" => 1544113709482L,
"enabled-timestamp" => "2018-12-06 11:28:29,482 EST",
"name" => "AnotherPublisherResponseTest.war",
"owner" => undefined,
"persistent" => true,
"runtime-name" => "AnotherPublisherResponseTest.war",
"subdeployment" => undefined,
"subsystem" => {
"jaxrs" => {"rest-resource" =>
{"org.jboss.resteasy.test.response.resource.PublisherResponseResource" =>
{}}},
"undertow" => {
"context-root" => "/AnotherPublisherResponseTest",
"server" => "default-server",
"virtual-host" => "default-host",
"servlet" => {
"ArquillianServletRunner" => {
"servlet-class" =>
"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner",
"servlet-name" => "ArquillianServletRunner"
},
"org.jboss.resteasy.utils.TestApplication" => {
"servlet-class" =>
"org.jboss.resteasy.plugins.server.servlet.HttpServlet30Dispatcher",
"servlet-name" =>
"org.jboss.resteasy.utils.TestApplication"
}
},
"websocket" => undefined
},
"logging" => {"configuration" => undefined}
}
}
{code}
The wildfly-15.0.0.Beta1+ output is.
{code:java}
{
......
"enabled" => true,
"name" => "AnotherPublisherResponseTest.war",
"owner" => undefined,
"persistent" => true,
"runtime-name" => "AnotherPublisherResponseTest.war",
"subdeployment" => undefined,
"subsystem" => {
"jaxrs" => {"rest-resource" =>
{"org.jboss.resteasy.test.response.resource.PublisherResponseResource" =>
{}}},
"undertow" => {
"servlet" => {
"ArquillianServletRunner" => {},
"org.jboss.resteasy.utils.TestApplication" => {}
},
"websocket" => undefined
},
"logging" => {"configuration" => undefined}
}
}
{code}