[jboss-jira] [JBoss JIRA] Resolved: (JBWEB-190) TomcatResolver in RewriteValve can't resolve environment variable previously stored by a RewriteRule directive
Remy Maucherat (JIRA)
jira-events at lists.jboss.org
Wed Dec 1 08:53:06 EST 2010
[ https://jira.jboss.org/browse/JBWEB-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Remy Maucherat resolved JBWEB-190.
----------------------------------
Fix Version/s: JBossWeb-3.0.0.Beta8
Resolution: Done
The patch was bad though.
> 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: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list