unico       2004/06/30 01:39:04

  Modified:    src/blocks/webdav/java/org/apache/cocoon/components/source/impl
                        WebDAVSource.java
  Log:
  mod_dav_svn reportedly misbehaves on MKCOL
  
  Revision  Changes    Path
  1.31      +7 -1      
cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/source/impl/WebDAVSource.java
  
  Index: WebDAVSource.java
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/source/impl/WebDAVSource.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- WebDAVSource.java 29 Jun 2004 16:10:55 -0000      1.30
  +++ WebDAVSource.java 30 Jun 2004 08:39:04 -0000      1.31
  @@ -759,6 +759,12 @@
                       ((ModifiableTraversableSource) 
getParent()).makeCollection();
                       makeCollection();
                   }
  +                else if (status == 404) {
  +                    // apparently mod_dav_svn wrongly returns 404
  +                    // on MKCOL when parent does not exist
  +                    ((ModifiableTraversableSource) 
getParent()).makeCollection();
  +                    makeCollection();
  +                }
                   // Ignore status 405 - Not allowed: collection already exists
                   else if (status != 405) {
                       final String msg = 
  
  
  

Reply via email to