You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2007/06/01 22:53:08 UTC
svn commit: r543608 - /roller/trunk/apps/weblogger/web/WEB-INF/web.xml
Author: agilliland
Date: Fri Jun 1 13:53:08 2007
New Revision: 543608
URL: http://svn.apache.org/viewvc?view=rev&rev=543608
Log:
more work to fix ROL-1422 which wasn't quite fixed all the way. this is still an issue that i don't understand, but it's a bug with the struts2 code and sadly we don't have much control over it. this mailing list thread details the issue the best i've seen and links a forum posting where someone else shows their solution, which is to add the ActionContextCleanUp filter ...
http://www.mail-archive.com/user@struts.apache.org/msg55135.html
Modified:
roller/trunk/apps/weblogger/web/WEB-INF/web.xml
Modified: roller/trunk/apps/weblogger/web/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/web/WEB-INF/web.xml?view=diff&rev=543608&r1=543607&r2=543608
==============================================================================
--- roller/trunk/apps/weblogger/web/WEB-INF/web.xml (original)
+++ roller/trunk/apps/weblogger/web/WEB-INF/web.xml Fri Jun 1 13:53:08 2007
@@ -18,6 +18,13 @@
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
+ <!-- This is really strange, but for some reason it's needed to prevent
+ some problems with the file uploads not working intermittently -->
+ <filter>
+ <filter-name>struts2-cleanup</filter-name>
+ <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
+ </filter>
+
<filter>
<filter-name>securityFilter</filter-name>
<filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
@@ -151,6 +158,13 @@
</filter-mapping>
<!-- Struts2 -->
+ <filter-mapping>
+ <filter-name>struts2-cleanup</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>