ib          2004/03/01 07:00:39

  Modified:    webdavclient/clientlib/src/java/org/apache/webdav/lib
                        WebdavResource.java
  Log:
  Fix bug: The path of a child resource has been escaped twice.
  
  Revision  Changes    Path
  1.7       +10 -10    
jakarta-slide/webdavclient/clientlib/src/java/org/apache/webdav/lib/WebdavResource.java
  
  Index: WebdavResource.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/webdavclient/clientlib/src/java/org/apache/webdav/lib/WebdavResource.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- WebdavResource.java       25 Feb 2004 16:32:16 -0000      1.6
  +++ WebdavResource.java       1 Mar 2004 15:00:39 -0000       1.7
  @@ -960,13 +960,13 @@
               }
               if (!itself) {
                   String myURI = httpURL.getEscapedURI();
  -                workingResource.setHttpURL(
  -                    httpURL instanceof HttpsURL
  -                    ? new HttpsURL(myURI + (myURI.endsWith("/") ? "" : "/")
  -                                   + URIUtil.encodePath(displayName))
  -                    : new HttpURL(myURI + (myURI.endsWith("/") ? "" : "/")
  -                                  + URIUtil.encodePath(displayName)),
  -                    NOACTION, defaultDepth);
  +                char[] childURI = (myURI + (myURI.endsWith("/") ? "" : "/")
  +                                   + URIUtil.encodePath(displayName)
  +                    ).toCharArray();
  +                workingResource.setHttpURL(httpURL instanceof HttpsURL
  +                                           ? new HttpsURL(childURI)
  +                                           : new HttpURL(childURI),
  +                                           NOACTION, defaultDepth);
                   workingResource.setExistence(true);
                   workingResource.setOverwrite(getOverwrite());
               }
  
  
  

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

Reply via email to