[
https://issues.jboss.org/browse/WFLY-9798?page=com.atlassian.jira.plugin....
]
구용 이 updated WFLY-9798:
-----------------------
Description:
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
was:
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
failure description: "WFLYCTL0211: Cannot resolve expression
'/abc/test${1}.jsp'"
Thank you
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)