cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/request/multipart MultipartRequestWrapper.java
Date Fri, 05 Apr 2002 11:04:25 GMT
cziegeler    02/04/05 03:04:24

  Modified:    .        changes.xml
               src/java/org/apache/cocoon/components/request/multipart
                        MultipartRequestWrapper.java
  Log:
  Fixing ClassCastException when a multipart/form-data form is posted.
  PR: 7510
  Submitted by: Jeroen ter Voorde [j.tervoorde@home.nl]
  
  Revision  Changes    Path
  1.137     +4 -1      xml-cocoon2/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/changes.xml,v
  retrieving revision 1.136
  retrieving revision 1.137
  diff -u -r1.136 -r1.137
  --- changes.xml	5 Apr 2002 10:59:12 -0000	1.136
  +++ changes.xml	5 Apr 2002 11:04:24 -0000	1.137
  @@ -4,7 +4,7 @@
   
   <!--
     History of Cocoon changes
  -  $Id: changes.xml,v 1.136 2002/04/05 10:59:12 cziegeler Exp $
  +  $Id: changes.xml,v 1.137 2002/04/05 11:04:24 cziegeler Exp $
   -->
   
   <changes title="History of Changes">
  @@ -35,6 +35,9 @@
    </devs>
   
    <release version="@version@" date="@date@">
  +  <action dev="CZ" type="fix" fixes-bug="7510">
  +    Fixing ClassCastException when a multipart/form-data form is posted. Submitted by Jeroen
ter Voorde [j.tervoorde@home.nl]
  +  </action>
     <action dev="CZ" type="update">
       Rewrote SQLTransformer and added capability to store/fetch XML.
     </action>
  
  
  
  1.2       +7 -2      xml-cocoon2/src/java/org/apache/cocoon/components/request/multipart/MultipartRequestWrapper.java
  
  Index: MultipartRequestWrapper.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/request/multipart/MultipartRequestWrapper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MultipartRequestWrapper.java	27 Feb 2002 20:21:22 -0000	1.1
  +++ MultipartRequestWrapper.java	5 Apr 2002 11:04:24 -0000	1.2
  @@ -70,7 +70,7 @@
    *
    * @author Jeroen ter Voorde
    * @author <a href="mailto:j.tervoorde@home.nl">Jeroen ter Voorde</a>
  - * @version CVS $Id: MultipartRequestWrapper.java,v 1.1 2002/02/27 20:21:22 dims Exp $
  + * @version CVS $Id: MultipartRequestWrapper.java,v 1.2 2002/04/05 11:04:24 cziegeler Exp
$
    */
   public class MultipartRequestWrapper
           implements ServletRequest, HttpServletRequest {
  @@ -205,7 +205,12 @@
   
               if (value != null) {
                   if (value instanceof Vector) {
  -                    return (String[]) ((Vector) value).toArray();
  +                    String[] results = new String[((Vector)value).size()];
  +                    for (int i=0;i<((Vector)value).size();i++) {
  +                        results[i] = ((Vector)value).elementAt(i).toString();
  +                    }
  +                    return results;
  +
                   } else {
                       return new String[]{value.toString()};
                   }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message