From 00f5596da512bfaec9704e515c0298b8547c2967 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Fri, 10 Aug 2007 08:44:33 +0000 Subject: [PATCH] [MRM-408] make sure parent directories exist when making a PUT request git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@564511 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/archiva/web/repository/ProxiedDavServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/ProxiedDavServer.java b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/ProxiedDavServer.java index a31ed1f74..6e61d67e8 100644 --- a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/ProxiedDavServer.java +++ b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/ProxiedDavServer.java @@ -135,6 +135,10 @@ public class ProxiedDavServer } else { + // Create parent directories that don't exist when writing a file + // This actually makes this implementation not compliant to the WebDAV RFC - but we have enough knowledge + // about how the collection is being used to do this reasonably and some versions of Maven's WebDAV don't + // correctly create the collections themselves. File rootDirectory = getRootDirectory(); if ( rootDirectory != null ) {