[wildfly-dev] undertow filters
Claudio Miranda
claudio at claudius.com.br
Wed Apr 6 18:59:05 EDT 2016
Hi, working with wildfly 10.1 SNAPSHOT, with latest update as of Mar/23
The issue is, add an error-page filter, named error3, remove it, add
with the same name, it throws an exception of duplicated name, see
below.
The remove operation, requires a reload, but does it should prevent
the adding of a item with the same name ? I thought the reload
operation is necessary only to apply the settings at boot time.
[standalone at localhost:9990 /]
/subsystem=undertow/configuration=filter/error-page=error3:add(code=402,path="caminho2.html")
{"outcome" => "success"}
[standalone at localhost:9990 /]
/subsystem=undertow/configuration=filter/error-page=error3:remove
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
[standalone at localhost:9990 /]
/subsystem=undertow/configuration=filter/error-page=error3:add(code=402,path="caminho2.html")
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0158: Operation handler failed:
org.jboss.msc.service.DuplicateServiceException: Service
jboss.undertow.filter.error3 is already registered",
"rolled-back" => true,
"response-headers" => {"process-state" => "reload-required"}
}
--
Claudio Miranda
claudio at claudius.com.br
http://www.claudius.com.br
More information about the wildfly-dev
mailing list