Return-Path: Delivered-To: apmail-poi-dev-archive@www.apache.org Received: (qmail 91967 invoked from network); 3 Sep 2010 11:27:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Sep 2010 11:27:12 -0000 Received: (qmail 24760 invoked by uid 500); 3 Sep 2010 11:27:12 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 24509 invoked by uid 500); 3 Sep 2010 11:27:09 -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 24499 invoked by uid 99); 3 Sep 2010 11:27:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Sep 2010 11:27:08 +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, 03 Sep 2010 11:27:06 +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 o83BQidf018245 for ; Fri, 3 Sep 2010 11:26:44 GMT Received: (from daemon@localhost) by thor.apache.org (8.13.8+Sun/8.13.8/Submit) id o83BQiHr018244; Fri, 3 Sep 2010 07:26:44 -0400 (EDT) Date: Fri, 3 Sep 2010 07:26:44 -0400 (EDT) From: bugzilla@apache.org To: dev@poi.apache.org Subject: DO NOT REPLY [Bug 49875] New: Different behaviour with invalid sheet names between HSSF and XSSF 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: martin.studer@mirai-solutions.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=49875 Summary: Different behaviour with invalid sheet names between HSSF and XSSF Product: POI Version: 3.7-dev Platform: PC Status: NEW Severity: normal Priority: P2 Component: XSSF AssignedTo: dev@poi.apache.org ReportedBy: martin.studer@mirai-solutions.com When trying to create a sheet with an invalid name (e.g. having a (') at the beginning or the end) with HSSF, then this creates an exception like "Invalid sheet name ''Invalid Sheet Name'. Sheet names must not begin or end with (').". I would consider this as expected and reasonable behaviour. With XSSF, however, no such exception is produced. But when trying to open the created Excel file, Excel shows a dialog box saying that non-readable content has been found and asks whether Excel should recover the content. I would except HSSF and XSSF to behave the same way and throw an exception when trying to create a sheet with an invalid name. The above behaviour can be reproduced by using the workbook.createSheet function. OS: Windows 7 64bit POI: 3.7-beta2 Java: 1.6.0_20 64bit -- 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