]
Remy Maucherat commented on JBWEB-190:
--------------------------------------
Ok, thanks. So the patch was bad because the toString will cause NPEs, and if it passes
that it won't return null.
TomcatResolver in RewriteValve can't resolve environment variable
previously stored by a RewriteRule directive
--------------------------------------------------------------------------------------------------------------
Key: JBWEB-190
URL:
https://jira.jboss.org/browse/JBWEB-190
Project: JBoss Web
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Rewrite Valve
Reporter: Wenwei Liao
Assignee: Remy Maucherat
Priority: Minor
Fix For: JBossWeb-3.0.0.Beta8
In the following test case,
http://test.foo.net/news/123 will be rewrote into /null.do
instead of /test.do
RewriteCond %{HTTP_HOST} ^(.*).foo.net$ [NC]
RewriteRule .* $0 [E=subdomain:%1]
# news
RewriteRule /news/(\d+) /%{ENV:subdomain}.do [L]
It seems that subdomain=test has been stored into request.attributes but TomcatResolver
doesn't retrive subdomain from request.attributes but via System.getProperty
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: