You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Dan Matthews (JIRA)" <ji...@apache.org> on 2015/02/25 17:19:04 UTC
[jira] [Updated] (ARIES-1302) Temporary Zip File created does not
get deleted
[ https://issues.apache.org/jira/browse/ARIES-1302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Matthews updated ARIES-1302:
--------------------------------
Priority: Minor (was: Major)
> Temporary Zip File created does not get deleted
> -----------------------------------------------
>
> Key: ARIES-1302
> URL: https://issues.apache.org/jira/browse/ARIES-1302
> Project: Aries
> Issue Type: Bug
> Components: Util
> Affects Versions: util-1.1.0
> Reporter: Dan Matthews
> Priority: Minor
>
> InputStreamClosableDirectory has code in its cleanup() method to delete the temporary file, called when close() method called (inherited from parent class CloseableDirectory). However, "clients" of this class store/treat the reference as an IDirectory (which is not Closeable), even though FileSystem.getFSRoot() return an ICloseableDirectory, and call close() on return of toCloseable() - in this case the cleanup() method is not called since close is called on the new wrapper for the InputStreamClosableDirectory's delegate , this results in the .zip file in the tmp directory not being deleted.
> By "clients" I am referring to code inside apache aries.
> This happens, for example, when an eba is started
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)