mirror of https://github.com/apache/archiva.git
[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:
parent
7a18de01d5
commit
00f5596da5
|
@ -135,6 +135,10 @@ public class ProxiedDavServer
|
||||||
}
|
}
|
||||||
else
|
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();
|
File rootDirectory = getRootDirectory();
|
||||||
if ( rootDirectory != null )
|
if ( rootDirectory != null )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue