Uploaded image for project: 'Portlet Bridge'
  1. Portlet Bridge
  2. PBR-241

RichFaces ajax4jsf Filter "maxRequestSize" doesn't work with Portlet Bridge 2.1.1-SNAPSHOT

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Upon loading a file with richface fileupload component that exceeds the ajax4jsf Filter "maxRequestSize" byte size, the upload is not aborted and "File size restricted" error message is not shown.

      Tested with Portlet Bridge 2.1.1-SNAPSHOT and Richface 3.3.3.Final (i.e. Bridge 2.1.0.Final does not support fileupload).

      web.xml was defined to restrict file size to be capped at 1,000 KB (< 1MB) as shown below.
      <filter>
      <display-name>RichFaces Filter</display-name>
      <filter-name>richfaces</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>
      <init-param>
      <param-name>createTempFiles</param-name>
      <param-value>true</param-value>
      </init-param>
      <init-param>
      <param-name>maxRequestSize</param-name>
      <param-value>1000000</param-value>
      </init-param>
      </filter>

      <filter-mapping>
      <filter-name>richfaces</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>INCLUDE</dispatcher>
      </filter-mapping>

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  wesleyhales Wesley Hales
                  Reporter:
                  alexyum Alex Yum
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: