Bug 63372 - XSSFSheet.createTable corrupts workbook unless setDisplayName is called
Summary: XSSFSheet.createTable corrupts workbook unless setDisplayName is called
Status: RESOLVED DUPLICATE of bug 62906
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 4.0.x-dev
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-22 04:41 UTC by David Gauntt
Modified: 2019-04-22 11:04 UTC (History)
0 users



Attachments
Unit test illustrating problem with createTable (1.16 KB, text/plain)
2019-04-22 04:41 UTC, David Gauntt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Gauntt 2019-04-22 04:41:36 UTC
Created attachment 36542 [details]
Unit test illustrating problem with createTable

If you add an XSSFTable to an XSSFSheet, and do not call getCTTable.setDisplayName, then when the workbook is opened by Excel 365 the following error message is displayed:

We found a problem with some content in '<filename>'.  Do you want us to try to recover as much as we can? ...

After clicking on Yes, the following information is displayed:

Removed Part: /xl/tables/table1.xml part with XML error.  (Table) Load error. Line 2, column 92.

In the attached unit test, if "runTestKern(false)" is called, the resulting workbook will display the error message when opened by Excel 365.  IF "runTestKern(true)" is called, the error message is not displayed.
Comment 1 David Gauntt 2019-04-22 11:04:03 UTC

*** This bug has been marked as a duplicate of bug 62906 ***