[jboss-jira] [JBoss JIRA] Commented: (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
Thu Dec 2 07:35:04 EST 2010
[ https://jira.jboss.org/browse/JBWEB-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566870#comment-12566870 ]
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: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list