commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Grigorev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VFS-419) JarFileSystem incorrect resolves file after the file was removed from cache
Date Thu, 31 May 2012 06:58:22 GMT
Sergey Grigorev created VFS-419:
-----------------------------------

             Summary: JarFileSystem incorrect resolves file after the file was removed from
cache
                 Key: VFS-419
                 URL: https://issues.apache.org/jira/browse/VFS-419
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Sergey Grigorev
             Fix For: 2.0


If I call fileSystemManager.resolveFile("jar: ... ") and the file was removed from cache,
JarFileSystem calls method createFile(AbstractFileName name). This method is not overridden
from ZipFileManager and works wrong (it return ZipFileObject instead JarFileObject). But i
can override it and make return JarFileObject case this object won't have children and JarURLConnectionImpl
won't work. It should reinvalidate cache and return the object with children objects.

I've added a patch to fix this problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message