ib          2004/03/01 07:00:59

  Modified:    webdavclient/clientlib/src/java/org/apache/webdav/lib Tag:
                        SLIDE_2_0_RELEASE_BRANCH WebdavResource.java
  Log:
  Fix bug: The path of a child resource has been escaped twice.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.2.4   +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.3.2.3
  retrieving revision 1.3.2.4
  diff -u -r1.3.2.3 -r1.3.2.4
  --- WebdavResource.java       25 Feb 2004 16:33:21 -0000      1.3.2.3
  +++ WebdavResource.java       1 Mar 2004 15:00:59 -0000       1.3.2.4
  @@ -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