Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 937CB9C57 for ; Fri, 1 Jun 2012 02:15:23 +0000 (UTC) Received: (qmail 80978 invoked by uid 500); 1 Jun 2012 02:15:23 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 80900 invoked by uid 500); 1 Jun 2012 02:15:23 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 80889 invoked by uid 99); 1 Jun 2012 02:15:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2012 02:15:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id EE58A142837 for ; Fri, 1 Jun 2012 02:15:22 +0000 (UTC) Date: Fri, 1 Jun 2012 02:15:22 +0000 (UTC) From: "Gary D. Gregory (JIRA)" To: issues@commons.apache.org Message-ID: <861325530.24951.1338516922979.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1535656448.20693.1338447502943.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Comment Edited] (VFS-419) JarFileSystem incorrectly resolves file if it has been removed from the cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/VFS-419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287098#comment-13287098 ] Gary D. Gregory edited comment on VFS-419 at 6/1/12 2:14 AM: ------------------------------------------------------------- BTW, are you using a {{VFSClassLoader}}? Please see {{org.apache.commons.vfs2.impl.test.VfsClassLoaderTests.testLoadClass()}} was (Author: garydgregory): BTW, are you using a {{VFSClassLoader}}? > JarFileSystem incorrectly resolves file if it has been removed from the 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 > Labels: core, patch > Fix For: 2.0 > > Attachments: JarFileSystem.java.patch > > Original Estimate: 0.5h > Remaining Estimate: 0.5h > > 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 (its 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