struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes Wannemacher (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WW-3077) StrutsPrepareAndExecuteFilter: infinite loop in filter chain with dispatcher FORWARD
Date Fri, 29 May 2009 17:30:42 GMT

     [ https://issues.apache.org/struts/browse/WW-3077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wes Wannemacher updated WW-3077:
--------------------------------

    Attachment: StrutsExecuteFilter.java.patch

Here it is as a patch. I haven't worked on the filter dispatcher, so I'm going to leave the
patch out here for someone else more adventurous

> StrutsPrepareAndExecuteFilter: infinite loop in filter chain with dispatcher FORWARD
> ------------------------------------------------------------------------------------
>
>                 Key: WW-3077
>                 URL: https://issues.apache.org/struts/browse/WW-3077
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Dispatch Filter
>    Affects Versions: 2.1.6
>         Environment: Windows XP SP2, Java 1.6.0_10. Tomcat 6.0.18
>  
>            Reporter: Marco Rolando
>             Fix For: Future
>
>         Attachments: StrutsExecuteFilter.java.patch
>
>
> Using the struts 2 filter StrutsPrepareAndExecuteFilter with UrlRewrite (org.tuckey.web.filters.urlrewrite.UrlRewriteFilter)
the filter evaluation sequence enters an infinite loop. The same problem arise with other
forwarding filters.
> org.apache.struts2.dispatcher.FilterDispatcher does not suffer from this problem.
> Below the filter configuration in web.xml
> 	<filter-mapping>
> 		<filter-name>rewriteUrl</filter-name>
> 		<url-pattern>/*</url-pattern>
> 		<dispatcher>REQUEST</dispatcher>
> 		<dispatcher>FORWARD</dispatcher>
> 	</filter-mapping>
> 	<filter-mapping>
> 		<filter-name>struts2</filter-name>
> 		<url-pattern>/*</url-pattern>
> 		<dispatcher>REQUEST</dispatcher>
> 		<dispatcher>FORWARD</dispatcher>
> 	</filter-mapping>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message