cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/webdav WebDAVUtil.java
Date Tue, 27 Apr 2004 21:13:48 GMT
ugo         2004/04/27 14:13:48

  Modified:    src/blocks/webdav/java/org/apache/cocoon/components/webdav
                        WebDAVUtil.java
  Log:
  Retain ending slash in uriPrefix in method createResource.
This allows it to work with Apache2+mod_dav
which apparently doesn't like a directory name without an ending slash.
  
  Revision  Changes    Path
  1.8       +1 -1      cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/webdav/WebDAVUtil.java
  
  Index: WebDAVUtil.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/webdav/WebDAVUtil.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- WebDAVUtil.java	14 Apr 2004 18:11:20 -0000	1.7
  +++ WebDAVUtil.java	27 Apr 2004 21:13:48 -0000	1.8
  @@ -75,7 +75,7 @@
       throws HttpException, IOException {
   
           final String filename = uri.substring(uri.lastIndexOf("/"));
  -        final String uriPrefix = uri.substring(0, uri.lastIndexOf("/"));
  +        final String uriPrefix = uri.substring(0, uri.lastIndexOf("/") + 1);
           final HttpURL sourceURL = new HttpURL(uri);                                   
                               
           final WebdavResource resource = getWebdavResource(uriPrefix);
                           
  
  
  

Mime
View raw message