You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2017/07/20 01:37:02 UTC
[jira] [Resolved] (VFS-291) ZIP archives are not properly closed
after unzipping and cannot be deleted until the JVM exists
[ https://issues.apache.org/jira/browse/VFS-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory resolved VFS-291.
------------------------------
Resolution: Fixed
Fix Version/s: 2.2
Fixed in svn trunk. Please verify and close from svn trunk or https://repository.apache.org/content/repositories/snapshots/
{noformat}
commit -m "[VFS-291] ZIP archives are not properly closed after unzipping and cannot be deleted until the JVM exists." -N C:/vcs/svn/apache/commons/trunks-proper/vfs/core/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java C:/vcs/svn/apache/commons/trunks-proper/vfs/src/changes/changes.xml C:/vcs/svn/apache/commons/trunks-proper/vfs/core/src/main/java/org/apache/commons/vfs2/provider/zip/ZipFileObject.java
Sending C:/vcs/svn/apache/commons/trunks-proper/vfs/core/src/main/java/org/apache/commons/vfs2/provider/zip/ZipFileObject.java
Sending C:/vcs/svn/apache/commons/trunks-proper/vfs/core/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
Sending C:/vcs/svn/apache/commons/trunks-proper/vfs/src/changes/changes.xml
Transmitting file data ...
Unknown action received: commit finalizing
Committed revision 1802443.
{noformat}
> ZIP archives are not properly closed after unzipping and cannot be deleted until the JVM exists
> -----------------------------------------------------------------------------------------------
>
> Key: VFS-291
> URL: https://issues.apache.org/jira/browse/VFS-291
> Project: Commons VFS
> Issue Type: Bug
> Environment: Windows
> Reporter: Roman
> Priority: Critical
> Labels: patch
> Fix For: 2.2
>
> Attachments: AbstractFileObject.java.2.patch, AbstractFileObject.java.patch, FileLockUnitTest.diff, vfs-291.diff, ZipCloseBug.zip, ZipFileObject.java, ZipFileObject.java.patch
>
>
> Open a zip file with the ZipFileObject
> get an inputstream on its content
> try to delete it...
> it fails.
> I have attached a possible solution to this bug.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)