diff --git a/bom/pom.xml b/bom/pom.xml index b7245917021a..0ad347d11fb4 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -262,7 +262,7 @@ THE SOFTWARE. commons-fileupload commons-fileupload - 1.3.1-jenkins-2 + 1.4 com.sun.xml.txw2 diff --git a/core/src/main/java/hudson/PluginManager.java b/core/src/main/java/hudson/PluginManager.java index 3ce68f348794..68c3e149d37c 100644 --- a/core/src/main/java/hudson/PluginManager.java +++ b/core/src/main/java/hudson/PluginManager.java @@ -1771,6 +1771,9 @@ public HttpResponse doUploadPlugin(StaplerRequest req) throws IOException, Servl File t = File.createTempFile("uploaded", ".jpi"); t.deleteOnExit(); try { + // TODO Remove this workaround after FILEUPLOAD-293 is resolved. + t.delete(); + fileItem.write(t); } catch (Exception e) { // Exception thrown is too generic so at least limit the scope where it can occur