commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomek (JIRA)" <>
Subject [jira] [Resolved] (FILEUPLOAD-191) Temporary files aren't deleted when FileItem.getinputStream is used
Date Fri, 06 May 2011 12:24:03 GMT


Tomek  resolved FILEUPLOAD-191.

    Resolution: Invalid

It was not a bug. I was getting inputstream from FileItem every time, but I was closing it
only once at the end.

> Temporary files aren't deleted when FileItem.getinputStream is used
> -------------------------------------------------------------------
>                 Key: FILEUPLOAD-191
>                 URL:
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.2, 1.2.1, 1.2.2
>         Environment: Windows 7, Apache Tomcat 6.0.29
>            Reporter: Tomek 
>         Attachments: Golf Ball.jpg,
> While uploading files I need to use FileItem.getInputStream. I've discovered that when
FileItem.getInputStream is used, the FileItem is not deleted from the temporary files, even
when inputStream is closed. I've reproduce it in my application, as well as in the simple
servlet with only FileItem iterating and file write (and FileItem.getInputStream usage). I've
discovered also that this issue does not affect every file. I will attach a sample file for
which the issue always occurs.
> I've tested it with versions: 1.2, 1.2.1 and 1.2.2

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message