You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Tomek (JIRA)" <ji...@apache.org> on 2011/04/28 15:16:03 UTC

[jira] [Created] (FILEUPLOAD-191) Temporary files aren't deleted when FileItem.getinputStream is used

Temporary files aren't deleted when FileItem.getinputStream is used
-------------------------------------------------------------------

                 Key: FILEUPLOAD-191
                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-191
             Project: Commons FileUpload
          Issue Type: Bug
    Affects Versions: 1.2.2, 1.2.1, 1.2
         Environment: Windows 7, Apache Tomcat 6.0.29
            Reporter: Tomek 
         Attachments: Golf Ball.jpg

During uploading files I need to use FileItem.getInputStream. I've discovered that when the code with use of FileItem.getInputStream the FileItem isn't deleted from the temporary files, even if inputStream is closed. I've tested it in my application and in simple servlet where there's only fileitem itereating and file write (and FileItem.getInputStream usage). I've discored also that this issue don't affect all files. I will atach sample file for which I've always this issue.
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: http://www.atlassian.com/software/jira

[jira] [Updated] (FILEUPLOAD-191) Temporary files aren't deleted when FileItem.getinputStream is used

Posted by "Tomek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FILEUPLOAD-191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomek  updated FILEUPLOAD-191:
------------------------------

    Description: 
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

  was:
During uploading files I need to use FileItem.getInputStream. I've discovered that when the code with use of FileItem.getInputStream the FileItem isn't deleted from the temporary files, even if inputStream is closed. I've tested it in my application and in simple servlet where there's only fileitem itereating and file write (and FileItem.getInputStream usage). I've discored also that this issue don't affect all files. I will atach sample file for which I've always this issue.
I've tested it with versions: 1.2, 1.2.1 and 1.2.2


> Temporary files aren't deleted when FileItem.getinputStream is used
> -------------------------------------------------------------------
>
>                 Key: FILEUPLOAD-191
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-191
>             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, webapp.zip
>
>
> 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: http://www.atlassian.com/software/jira

[jira] [Closed] (FILEUPLOAD-191) Temporary files aren't deleted when FileItem.getinputStream is used

Posted by "Tomek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FILEUPLOAD-191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomek  closed FILEUPLOAD-191.
-----------------------------


> Temporary files aren't deleted when FileItem.getinputStream is used
> -------------------------------------------------------------------
>
>                 Key: FILEUPLOAD-191
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-191
>             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, webapp.zip
>
>
> 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: http://www.atlassian.com/software/jira

[jira] [Updated] (FILEUPLOAD-191) Temporary files aren't deleted when FileItem.getinputStream is used

Posted by "Tomek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FILEUPLOAD-191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomek  updated FILEUPLOAD-191:
------------------------------

    Attachment: webapp.zip

My project where I've recive this problem.

> Temporary files aren't deleted when FileItem.getinputStream is used
> -------------------------------------------------------------------
>
>                 Key: FILEUPLOAD-191
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-191
>             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, webapp.zip
>
>
> During uploading files I need to use FileItem.getInputStream. I've discovered that when the code with use of FileItem.getInputStream the FileItem isn't deleted from the temporary files, even if inputStream is closed. I've tested it in my application and in simple servlet where there's only fileitem itereating and file write (and FileItem.getInputStream usage). I've discored also that this issue don't affect all files. I will atach sample file for which I've always this issue.
> 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: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (FILEUPLOAD-191) Temporary files aren't deleted when FileItem.getinputStream is used

Posted by "Tomek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FILEUPLOAD-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026917#comment-13026917 ] 

Tomek  edited comment on FILEUPLOAD-191 at 4/29/11 10:02 AM:
-------------------------------------------------------------

My project in which the problem occurred.

      was (Author: toto):
    My project where I've recive this problem.
  
> Temporary files aren't deleted when FileItem.getinputStream is used
> -------------------------------------------------------------------
>
>                 Key: FILEUPLOAD-191
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-191
>             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, webapp.zip
>
>
> During uploading files I need to use FileItem.getInputStream. I've discovered that when the code with use of FileItem.getInputStream the FileItem isn't deleted from the temporary files, even if inputStream is closed. I've tested it in my application and in simple servlet where there's only fileitem itereating and file write (and FileItem.getInputStream usage). I've discored also that this issue don't affect all files. I will atach sample file for which I've always this issue.
> 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: http://www.atlassian.com/software/jira

[jira] [Resolved] (FILEUPLOAD-191) Temporary files aren't deleted when FileItem.getinputStream is used

Posted by "Tomek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FILEUPLOAD-191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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: https://issues.apache.org/jira/browse/FILEUPLOAD-191
>             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, webapp.zip
>
>
> 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: http://www.atlassian.com/software/jira

[jira] [Updated] (FILEUPLOAD-191) Temporary files aren't deleted when FileItem.getinputStream is used

Posted by "Tomek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FILEUPLOAD-191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomek  updated FILEUPLOAD-191:
------------------------------

    Attachment: Golf Ball.jpg

> Temporary files aren't deleted when FileItem.getinputStream is used
> -------------------------------------------------------------------
>
>                 Key: FILEUPLOAD-191
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-191
>             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
>
>
> During uploading files I need to use FileItem.getInputStream. I've discovered that when the code with use of FileItem.getInputStream the FileItem isn't deleted from the temporary files, even if inputStream is closed. I've tested it in my application and in simple servlet where there's only fileitem itereating and file write (and FileItem.getInputStream usage). I've discored also that this issue don't affect all files. I will atach sample file for which I've always this issue.
> 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: http://www.atlassian.com/software/jira