diff options
author | Olivier Lamy <olamy@apache.org> | 2013-11-28 23:13:50 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-11-28 23:13:50 +0000 |
commit | 6a75009b5c08b379f61e32fe941754f7771c7a71 (patch) | |
tree | 160caa85814e41e6e211d3146d30001a81f6722e /archiva-modules/archiva-web/archiva-web-common/src | |
parent | 4f7f1d74f9afa007aea86c99e9652f2309554743 (diff) | |
download | archiva-6a75009b5c08b379f61e32fe941754f7771c7a71.tar.gz archiva-6a75009b5c08b379f61e32fe941754f7771c7a71.zip |
[MRM-1769]Can't uploads multiple artifacts of different types send packaging attribute
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1546472 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-web-common/src')
-rw-r--r-- | archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java index 308476686..eefe81a7b 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java @@ -184,6 +184,11 @@ public class DefaultFileUploadService File file = new File( SystemUtils.getJavaIoTmpDir(), fileName ); log.debug( "delete file:{},exists:{}", file.getPath(), file.exists() ); boolean removed = getSessionFileMetadatas().remove( new FileMetadata( fileName ) ); + // try with full name as ui only know the file name + if ( !removed ) + { + removed = getSessionFileMetadatas().remove( new FileMetadata( file.getPath() ) ); + } if ( file.exists() ) { return file.delete(); |