Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 71525 invoked from network); 30 May 2006 12:05:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2006 12:05:58 -0000 Received: (qmail 62537 invoked by uid 500); 30 May 2006 12:05:48 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 62448 invoked by uid 500); 30 May 2006 12:05:48 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 62391 invoked by uid 99); 30 May 2006 12:05:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 05:05:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [62.142.248.73] (HELO mail.zeniitti.net) (62.142.248.73) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 05:05:47 -0700 Received: from localhost (antares [127.0.0.1]) by mail.zeniitti.net (Postfix) with ESMTP id E6A929329C for ; Tue, 30 May 2006 15:05:24 +0300 (EEST) Received: from mail.zeniitti.net ([127.0.0.1]) by localhost (antares [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05985-05 for ; Tue, 30 May 2006 15:05:24 +0300 (EEST) Received: from webmail.zeniitti.net (antares [127.0.0.1]) by mail.zeniitti.net (Postfix) with ESMTP id BF02F93286 for ; Tue, 30 May 2006 15:05:24 +0300 (EEST) Received: from 131.207.166.197 (SquirrelMail authenticated user harrik) by webmail.zeniitti.net with HTTP; Tue, 30 May 2006 15:05:24 +0300 (EEST) Message-ID: <1553.131.207.166.197.1148990724.squirrel@webmail.zeniitti.net> In-Reply-To: <44744384.6090106@ops.co.at> References: <44744384.6090106@ops.co.at> Date: Tue, 30 May 2006 15:05:24 +0300 (EEST) Subject: [commons vfs] Considering empty (zip) packages From: "hrjk" To: "Jakarta Commons Users List" Reply-To: harrik@zeniitti.net User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at zeniitti.net X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi. What's the correct handling of empty, but otherwise correct packages? It seems like currently these (for zip packages atleast) are handled by throwing FileSystemException and error "Could not open Zip file ...". Errors start to flow from java.util.zip: ... Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(Unknown Source) at java.util.zip.ZipFile.(Unknown Source) at org.apache.commons.vfs.provider.zip.ZipFileSystem.createZipFile(ZipFileSystem.java:153) ... 11 more I know this issue is rather strange, why should anyone create empty zip package. But if this case should occur for some reason, is the exception correct way of handling things? I think that the package should be opened without exceptions, though there is nothing to be read. Or do you strongly disagree? :) BR, -hrjk --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org