cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ghow...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/servlet CocoonServlet.java
Date Tue, 16 Sep 2003 01:51:05 GMT
ghoward     2003/09/15 18:51:05

  Modified:    src/java/org/apache/cocoon/servlet CocoonServlet.java
  Log:
  Add debugging statement about multipart cleanup.  
  In 2.1 it is the responsibility of the application writer 
  to save the uploaded file elsewhere to disk or else it 
  will be deleted at the end of the request.
  
  Revision  Changes    Path
  1.16      +4 -2      cocoon-2.1/src/java/org/apache/cocoon/servlet/CocoonServlet.java
  
  Index: CocoonServlet.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/servlet/CocoonServlet.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- CocoonServlet.java	10 Sep 2003 17:58:26 -0000	1.15
  +++ CocoonServlet.java	16 Sep 2003 01:51:05 -0000	1.16
  @@ -118,7 +118,6 @@
   import org.apache.log.ErrorHandler;
   import org.apache.log.util.DefaultErrorHandler;
   import org.apache.log.output.ServletOutputLogTarget;
  -import org.apache.log.util.DefaultErrorHandler;
   
   /**
    * This is the entry point for Cocoon execution as an HTTP Servlet.
  @@ -1184,6 +1183,9 @@
   
               try {
                   if (request instanceof MultipartHttpServletRequest) {
  +                    if (getLogger().isDebugEnabled()) {
  +                        getLogger().debug("Deleting uploaded file(s).");
  +                    }
                       ((MultipartHttpServletRequest) request).cleanup();
                   }
               } catch (IOException e) {
  
  
  

Mime
View raw message