aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Matthews (JIRA)" <>
Subject [jira] [Created] (ARIES-1302) Temporary Zip File created does not get deleted
Date Wed, 25 Feb 2015 16:17:04 GMT
Dan Matthews created ARIES-1302:

             Summary: Temporary Zip File created does not get deleted
                 Key: ARIES-1302
             Project: Aries
          Issue Type: Bug
          Components: Util
    Affects Versions: util-1.1.0
            Reporter: Dan Matthews

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

View raw message