summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-03-24 03:13:41 +0000
committerBrett Porter <brett@apache.org>2009-03-24 03:13:41 +0000
commitd1f4143e778a5e2c3b4ff385027bb2194e49ccc8 (patch)
tree803bba9194f3545530e93e03842a1626efa460e0
parent71eda3948c694b438e9797c99ffe0648b1c6c4e5 (diff)
downloadarchiva-d1f4143e778a5e2c3b4ff385027bb2194e49ccc8.tar.gz
archiva-d1f4143e778a5e2c3b4ff385027bb2194e49ccc8.zip
add note on potential issue to fix
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@757643 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResource.java1
1 files changed, 1 insertions, 0 deletions
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 );