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

Undertow filter rewrite configuration error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • Web (Undertow)
    • None

    Description

      hi~

      A URL in the form of "http://localhost/test1" should be rewritten to "http://localhost/abc/test1"

      Configuration

      Undertow Subsystem
      <host ...
      <filter-ref name="rewrite-test" predicate="regex('^/test(.*)$')"/>
      ...
      <filters>
      <rewrite name="rewrite-test" target="/abc/test${1}.jsp" redirect="false"/>

      Problems:

      server.log
      WFLYUT0014: Creating file handler for path '/svc/eap71/was/wildfly-12.0.0.Alpha1-SNAPSHOT/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
      2018-02-12 13:44:09,562 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool – 65) WFLYCTL0013: Operation ("add") failed - address: ([
      ("subsystem" => "undertow"),
      ("configuration" => "filter"),
      ("rewrite" => "rewrite-test")
      ]) - failure description: "WFLYCTL0211: Cannot resolve expression '/abc/test${1}.jsp'"

      Thank you

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            ddakker_jira 구용 이 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: