[undertow-dev] Multipart File Upload on Rewritten URL

Cody Lerum cody.lerum at gmail.com
Tue Jan 13 16:05:08 EST 2015


Perfect. https://issues.jboss.org/browse/UNDERTOW-369

On Tue, Jan 13, 2015 at 1:55 PM, Stuart Douglas <sdouglas at redhat.com> wrote:
> There is no such Undertow option, however if you file a JIRA it should not be hard to add.
>
> Stuart
>
> ----- Original Message -----
>> From: "Cody Lerum" <cody.lerum at gmail.com>
>> To: undertow-dev at lists.jboss.org
>> Sent: Wednesday, 14 January, 2015 6:47:28 AM
>> Subject: [undertow-dev] Multipart File Upload on Rewritten URL
>>
>> 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?
>>
>> Thanks
>>
>> -C
>> _______________________________________________
>> undertow-dev mailing list
>> undertow-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/undertow-dev
>>


More information about the undertow-dev mailing list