diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResource.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResource.java index 2a91141a4..a305fe830 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResource.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResource.java @@ -313,6 +313,7 @@ public class ArchivaDavResource IOUtils.closeQuietly( stream ); } + // TODO: a bad deployment shouldn't delete an existing file - do we need to write to a temporary location first? if ( inputContext.getContentLength() != localFile.length() ) { FileUtils.deleteQuietly( localFile );