add note on potential issue to fix

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@757643 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2009-03-24 03:13:41 +00:00
parent 71eda3948c
commit d1f4143e77
1 changed files with 1 additions and 0 deletions

View File

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