From d1f4143e778a5e2c3b4ff385027bb2194e49ccc8 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Tue, 24 Mar 2009 03:13:41 +0000 Subject: [PATCH] add note on potential issue to fix git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@757643 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/archiva/webdav/ArchivaDavResource.java | 1 + 1 file changed, 1 insertion(+) 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 ); -- 2.39.5