You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by je...@apache.org on 2002/04/25 22:03:41 UTC

cvs commit: jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/methods PutMethod.java

jericho     02/04/25 13:03:41

  Modified:    src/webdav/client/src/org/apache/commons/httpclient/methods
                        PutMethod.java
  Log:
  - Don't make any reading and writing to the input and output stream the current connection.
     (It make the web-server hang or conflict after that)
  - Bug reported by Elodie Tasia <e.tasia at ever-team.com>
  
  Revision  Changes    Path
  1.6       +4 -4      jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/methods/PutMethod.java
  
  Index: PutMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/methods/PutMethod.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PutMethod.java	28 Mar 2002 06:12:08 -0000	1.5
  +++ PutMethod.java	25 Apr 2002 20:03:41 -0000	1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/methods/PutMethod.java,v 1.5 2002/03/28 06:12:08 jericho Exp $
  - * $Revision: 1.5 $
  - * $Date: 2002/03/28 06:12:08 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/methods/PutMethod.java,v 1.6 2002/04/25 20:03:41 jericho Exp $
  + * $Revision: 1.6 $
  + * $Date: 2002/04/25 20:03:41 $
    *
    * ====================================================================
    *
  @@ -239,7 +239,7 @@
               if(data.length > 0)
                   out.write(data,0,data.length);
               return;
  -        } else if (file != null) {
  +        } else if (file != null && file.exists()) {
               inputStream = new FileInputStream(file);
           } else if (url != null) {
               inputStream = url.openConnection().getInputStream();
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>