Return-Path: Delivered-To: apmail-poi-dev-archive@www.apache.org Received: (qmail 75206 invoked from network); 16 Jul 2010 22:53:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Jul 2010 22:53:54 -0000 Received: (qmail 11754 invoked by uid 500); 16 Jul 2010 22:53:54 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 11727 invoked by uid 500); 16 Jul 2010 22:53:53 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 11719 invoked by uid 99); 16 Jul 2010 22:53:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jul 2010 22:53:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jul 2010 22:53:50 +0000 Received: from thor.apache.org (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6GMrT2Y009951 for ; Fri, 16 Jul 2010 22:53:29 GMT Received: (from daemon@localhost) by thor.apache.org (8.13.8+Sun/8.13.8/Submit) id o6GMrSEI009950; Fri, 16 Jul 2010 18:53:28 -0400 (EDT) Date: Fri, 16 Jul 2010 18:53:28 -0400 (EDT) From: bugzilla@apache.org To: dev@poi.apache.org Subject: DO NOT REPLY [Bug 49609] New: Part name comparison in ZipPackage should be case-insensitive X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: XSSF X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebeaty@eragen.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=49609 Summary: Part name comparison in ZipPackage should be case-insensitive Product: POI Version: 3.7-dev Platform: Macintosh Status: NEW Severity: normal Priority: P2 Component: XSSF AssignedTo: dev@poi.apache.org ReportedBy: ebeaty@eragen.com Created an attachment (id=25777) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25777) XLSX file that can't be opened with POI 3.7-dev Attempting to open the attached file fails with the following error: Exception in thread "main" org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should contain a content type part [M1.13] at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:147) at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:588) at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:222) at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:63) The file opens normally in Microsoft Excel 2008 for Mac. If the file is saved as a Microsoft 97 file, POI opens it normally. The file is from a non-standard source (a scientific instrument that saves its output as an .xlsx file). The file contains a part name "[content_types].xml" (lower case), but the ZipPackage.getPartsImpl method expects the name "[Content_Types].xml" (mixed case). The exception is caused by a call to entry.getName().equals(ContentTypeManager.CONTENT_TYPES_PART_NAME). According to the Open Packaging Convention, "Part name equivalence is determined by comparing part names as case-insensitive ASCII strings." The bug also occurs in Windows XP. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org