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

[Migration operation] [Web to Undertow] Unable to migrate rewrite conditions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • None
    • 10.0.0.Beta2
    • Web (Undertow)
    • None

      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#predicates-attributes-and-handlers).

      I thus believe that rewrite conditions from Web should be also automatically migrated to Undertow via :migrate management operation.

      [1]

          "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\")
          ]
      

            sdouglas1@redhat.com Stuart Douglas
            rhatlapa@redhat.com Radim Hatlapatka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: