commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Tompkins (JIRA)" <>
Subject [jira] [Closed] (FILEUPLOAD-155) Fix documentation on resource clean up in conjunction with DiskFileItemFactory
Date Tue, 06 Jun 2017 04:56:18 GMT


Rob Tompkins closed FILEUPLOAD-155.

1.2.2 released.

> Fix documentation on resource clean up in conjunction with DiskFileItemFactory
> ------------------------------------------------------------------------------
>                 Key: FILEUPLOAD-155
>                 URL:
>             Project: Commons FileUpload
>          Issue Type: Improvement
>    Affects Versions: 1.2.1
>            Reporter: Jörg Heinicke
>            Assignee: Jochen Wiedmann
>            Priority: Minor
>             Fix For: 1.2.2
> 1.
> "return new DiskFileItemFactory(fileCleaningTracker, DiskFileItemFactory.DEFAULT_SIZE_THRESHOLD,
> DiskFileItemFactory does not have such a constructor.
> 2.
> "When using the DiskFileItemFactory, then you should consider the following: Temporary
files are automatically deleted as soon as they are no longer needed. (More precisely, when
the corresponding instance of File is garbage collected.) Cleaning up those files is done
by an instance of FileCleaningTracker, and an associated thread. In a complex environment,
for example in a web application, you should consider terminating this thread, for example,
when your web application ends. See the section on "Resource cleanup" in the users guide of
> That's at least not precise. By default there is no FileCleaningTracker.
> 3.
> "Returns: An instance of FileCleaningTracker, defaults to FileCleaner.getInstance().
Null, if temporary files aren't tracked."
> There is no default tracker.
> 4.
> "Returns the tracker, which is responsible for deleting temporary files."
> Obviously wrong for setter. Copy&Paste error from getter.

This message was sent by Atlassian JIRA

View raw message