[jboss-jira] [JBoss JIRA] (WFLY-9798) Undertow filter rewrite configuration error
Stuart Douglas (JIRA)
issues at jboss.org
Mon Feb 12 23:23:00 EST 2018
[ https://issues.jboss.org/browse/WFLY-9798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart Douglas resolved WFLY-9798.
----------------------------------
Resolution: Rejected
Because the attribute supports expressions you need to use '$$' as an escape instead of '$'. (i.e. $${1})
> Undertow filter rewrite configuration error
> -------------------------------------------
>
> Key: WFLY-9798
> URL: https://issues.jboss.org/browse/WFLY-9798
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Environment: h2. Test environment
> 1. CentOS Linux release 7.4.1708 (Core)
> 2. wildfly-11.0.0.Final
> 3. wildfly-12.0.0.Alpha1-SNAPSHOT
> Reporter: 구용 이
> Assignee: Stuart Douglas
>
> hi~
> A URL in the form of "http://localhost/test1" should be rewritten to "http://localhost/abc/test1"
> h2. Configuration
> Undertow Subsystem
> <host ...
> <filter-ref name="rewrite-test" predicate="regex('^/test(.*)$')"/>
> ...
> <filters>
> <rewrite name="rewrite-test" target="/abc/test${1}.jsp" redirect="false"/>
> h2. 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
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list