myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yann Simon" <yann.simon...@gmail.com>
Subject Re: enctype="multipart/form-data" and https
Date Tue, 15 Apr 2008 15:46:35 GMT
Hi,

The problem was a bug in commons-fileupload-1.2.jar.
I updated to commons-fileupload-1.2.1.jar and everything is working
perfectly, with an original unchanged tomahawk-1.6 jar file.

Yann

2008/4/14, Yann Simon <yann.simon.fr@gmail.com>:
> Hi!
>
>  I am using:
>  - JSF 1.2 RI
>  - Facelets
>  - Tomahawk (1.1.6)
>
>  The tomahakw extenstion filter is configured
>  (org.apache.myfaces.webapp.filter.ExtensionsFilter)
>
>  The form is using <h:form enctype="multipart/form-data"...>
>
>  In HTTP, everything work perfectly. (form with or without file upload)
>
>  In HTTPS, sometimes, I lose a value. The https request contains the value, like:
>  -----------------------------14216760423810
>  Content-Disposition: form-data;
>  name="test_domainuid_6f644761-68eb-4cd1-b718-7d9e980156eb"
>
>  US
>
>  But the value is lost sometimes.
>  I check the bug report
>  https://issues.apache.org/jira/browse/TOMAHAWK-1108 and tried to use
>  the proposed patch, but it does not solve the problem.
>
>  To get the value, I tried the 2 following methods in my rendering class:
>  1.
>  Map<String, String> requestMap =
>  context.getExternalContext().getRequestParameterMap();
>  String valueAsString = requestMap.get( clientId );
>
>  2.
>  HttpServletRequest request = (HttpServletRequest)
>  context.getExternalContext().getRequest();
>  String valueAsString = request.getParameter( clientId );
>
>  This is a weird problem...
>
>  Has somebody an idea to solve it?
>
>
>  Yann
>

Mime
View raw message