Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.2.2
-
None
-
Ubuntu 10.10
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
Description
Under certain conditions the DiskFileItem.write throws a FileNotFound exception. It seems to be when outputFile.renameTo(file) fails.
java.io.FileNotFoundException: /tmp/UploadController/uploading/upload_69651d04_13000a31964__8000_00001651.tmp (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.apache.commons.fileupload.disk.DiskFileItem.write(DiskFileItem.java:447) at upload.UploadController.handle(UploadController.java:90) ...
I can't see any obvious reason why the source file (outputFile) wouldn't exist...