You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/08/19 14:08:17 UTC

svn commit: r233469 - /myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/ExtensionsFilter.java

Author: mmarinschek
Date: Fri Aug 19 05:08:12 2005
New Revision: 233469

URL: http://svn.apache.org/viewcvs?rev=233469&view=rev
Log:
fix for MYFACES-347. Thanks to Dan Zehme for pointing us to this problem and suggesting a way to fix this.

Modified:
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/ExtensionsFilter.java

Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/ExtensionsFilter.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/ExtensionsFilter.java?rev=233469&r1=233468&r2=233469&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/ExtensionsFilter.java (original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/ExtensionsFilter.java Fri Aug 19 05:08:12 2005
@@ -43,6 +43,7 @@
     private int uploadThresholdSize = 1 * 1024 * 1024; // 1 MB
 
     private String uploadRepositoryPath = null; //standard temp directory
+    private static final String DOFILTER_CALLED = "org.apache.myfaces.component.html.util.ExtensionFilter.doFilterCalled";
 
     /**
      * Init method for this filter
@@ -85,6 +86,15 @@
     }
 
     public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
+
+        if(request.getAttribute(DOFILTER_CALLED)!=null)
+        {
+            chain.doFilter(request, response);
+            return;
+        }
+
+        request.setAttribute(DOFILTER_CALLED,"true");
+
         if (!(response instanceof HttpServletResponse)) {
             chain.doFilter(request, response);
             return;