jericho     02/04/29 08:58:17

  Modified:    src/webdav/client/src/org/apache/commons/httpclient/methods
                        GetMethod.java
  Log:
  - Set the file name below 256 characters supported by most operating system.
  Because the temporary file including 'temp' directory and timestamp will be over 256 
characters...
  like "temp/1019118623166-%2Fattic%2Fsts%..."
  - Bug reported by "Yu Yizhuan" <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.4       +5 -5      
jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/methods/GetMethod.java
  
  Index: GetMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/methods/GetMethod.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- GetMethod.java    25 Apr 2002 21:12:33 -0000      1.3
  +++ GetMethod.java    29 Apr 2002 15:58:17 -0000      1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/methods/GetMethod.java,v
 1.3 2002/04/25 21:12:33 jericho Exp $
  - * $Revision: 1.3 $
  - * $Date: 2002/04/25 21:12:33 $
  + * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/methods/GetMethod.java,v
 1.4 2002/04/29 15:58:17 jericho Exp $
  + * $Revision: 1.4 $
  + * $Date: 2002/04/29 15:58:17 $
    *
    * ====================================================================
    *
  @@ -376,9 +376,9 @@
                   if (tempFile == null) {
                       String encodedPath = URLEncoder.encode(getPath());
                       int length = encodedPath.length();
  -                    if (length > 240) {
  +                    if (length > 200) {
                           encodedPath =
  -                            encodedPath.substring(length - 200, length);
  +                            encodedPath.substring(length - 190, length);
                       }
                       tempFileName = System.currentTimeMillis() + "-"
                           + encodedPath + ".tmp";
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to