[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
This commit is contained in:
Brett Porter 2007-08-10 08:44:33 +00:00
parent 7a18de01d5
commit 00f5596da5
1 changed files with 4 additions and 0 deletions

View File

@ -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 )
{