[ 
https://issues.apache.org/jira/browse/FILEUPLOAD-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13595681#comment-13595681
 ] 

Simone Tripodi commented on FILEUPLOAD-189:
-------------------------------------------

[~gregork] reporters will be mentioned in the changelist, once generated, 
everybody here takes his acknowledgment ;) that is why ASF projects are 
different - it's really a community-driven environment! :)

the "issue" about timing is that ASF projects are maintained by volunteers - 
since I need [fileupload] at work, actually my spare time coincides with my 
working time, I got more chances to put an effort on maintaining it :)
                
> DiskFileItemFactory use of FileCleaningTracker is documated or coded wrong
> --------------------------------------------------------------------------
>
>                 Key: FILEUPLOAD-189
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-189
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.2.2
>            Reporter: Gregor K
>            Assignee: Simone Tripodi
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: FILEUPLOAD-189.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Regarding latest SVN revision:
> The DiskFileItemFactory documents:
> Temporary files are automatically deleted as soon as they are no longer 
> needed. (More precisely, when the corresponding instance of {@link 
> java.io.File} is garbage collected.)
> But the code in DiskFileItemFactory.createItem() is doing:
> tracker.track(result.getTempFile(), this);
> Which means the file is cleaned when DiskFileItemFactory is garbage collected.
> This error is propably introduced in Rev 578253 when the code was moved from 
> DiskFileItem to DiskFileItemFactory, without changing "this" (which was 
> DiskFileItem) and is not DiskFileItemFactory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to