]
Radim Hatlapatka updated WFLY-5237:
-----------------------------------
Affects Version/s: 10.0.0.Beta2
[Migration operation] [Web to Undertow] Unable to migrate rewrite
conditions
----------------------------------------------------------------------------
Key: WFLY-5237
URL:
https://issues.jboss.org/browse/WFLY-5237
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Affects Versions: 10.0.0.Beta2
Reporter: Radim Hatlapatka
Assignee: Stuart Douglas
Priority: Critical
Reewrite conditions are not migrated as :migrate operation currently marks them as
resources, which is not able to migrate see migration warning [].
In Undertow it is possible to create equivalent configuration by using filters (predicate
attributes and handlers, see
[
http://undertow.io/undertow-docs/undertow-docs-1.2.0/index.html#predicate...]).
I thus believe that rewrite conditions from Web should be also automatically migrated to
Undertow via :migrate management operation.
[1]
{noformat}
"result" => {"migration-warnings" => [
"WFLYWEB0002: Could not migrate resource {
\"pattern\" => \"(.*)/toberewritten/(.*)\",
\"substitution\" => \"$1/rewritten/$2\",
\"flags\" => \"NC\",
\"operation\" => \"add\",
\"address\" => [
(\"subsystem\" => \"web\"),
(\"virtual-server\" => \"default\"),
(\"rewrite\" => \"test\")
]
{noformat}