Bug 51061 - Wrong TargetURI in creating new table
Summary: Wrong TargetURI in creating new table
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.8-dev
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-14 05:02 UTC by Mario Di Stefano
Modified: 2011-04-14 10:33 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Di Stefano 2011-04-14 05:02:10 UTC
I'm using 

Table t1 = sh.createTable(); 

but I found that the TargetURI of the newly created table seems to be wrong, in fact is set to "/tables/table4.xml" instead of "xl//tables/table4.xml" as all the other tables are in the file. Even inside the XLSX file's structure this seems to be wrong, all the other tables are located under "xl/tables" but my new table definition is located under "/tables".
Comment 1 Nick Burch 2011-04-14 10:33:41 UTC
Fixed in r1092281. I've also renamed xssf.model.Table to xssf.usermodel.XSSFTable as mentioned on the list, as it seems the usermodel is a better home for it given what it does.