Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-369

Add Option for Casual Multipart Parsing

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.2.0.Beta9
    • None
    • None
    • None

    Description

      From the mailing list

      I'm encountering an issue with JSF file uploads and ocpsoft Rewrite
      where a native JSF 2.1 h:inputFile will not work if the URL it is
      posting to is a rewritten URL.

      This is somewhat known behavior per
      http://www.ocpsoft.org/rewrite/docs/faq Which says:

      "According to the Servlet spec HttpServletRequest.getParameter*() and
      HttpServletRequest.getPart*() can only be called from special Servlets
      for multipart/form-data request. Using these methods outside of such
      Servlets results in undefined behavior."

      The Rewrite FAQ suggests a setting in Tomcat that allows "Casual
      Multipart Parsing" allowCasualMultipartParsing="true"

      http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes

      Is there a similar option for Undertow, or is this just a case where
      multipart/form-data requests will not work on a rewritten URL?

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            cody.lerum@gmail.com Cody Lerum
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: