Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 98B893D08 for ; Thu, 28 Apr 2011 13:16:45 +0000 (UTC) Received: (qmail 89792 invoked by uid 500); 28 Apr 2011 13:16:45 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 89714 invoked by uid 500); 28 Apr 2011 13:16:45 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 89699 invoked by uid 99); 28 Apr 2011 13:16:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Apr 2011 13:16:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Apr 2011 13:16:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2DAC0B7C79 for ; Thu, 28 Apr 2011 13:16:03 +0000 (UTC) Date: Thu, 28 Apr 2011 13:16:03 +0000 (UTC) From: "Tomek (JIRA)" To: issues@commons.apache.org Message-ID: <759225832.8959.1303996563184.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <407898940.8957.1303996563126.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (FILEUPLOAD-191) Temporary files aren't deleted when FileItem.getinputStream is used MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on 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