Bug 61272 - In style.xml is inserted the tag <border/> without attributes
Summary: In style.xml is inserted the tag <border/> without attributes
Status: RESOLVED WONTFIX
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.14-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-10 08:05 UTC by duffy duck
Modified: 2017-07-12 14:11 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description duffy duck 2017-07-10 08:05:29 UTC
Sometimes inserting a new cell border, the final xlsx file has the related style.xml which contains the tag <border/> without additional attributes; this behavior causes problems when the xlsx file is subsequently processed.
Do you know if the insertion of the empty <border/> tag is correct ?
Comment 1 PJ Fanning 2017-07-10 09:21:18 UTC
Can you provide the following?
* poi version
* unit test or sample code
* a description of what happens when you try to read the xlsx file
Comment 2 Greg Woolsey 2017-07-10 15:06:05 UTC
All sub-elements of the cell border are optional in the ECMA OOXML spec, so an empty tag is allowed.

It is also allowed to be missing entirely.

In POI the class XSSFCellStyle handles undefined and defaulted/empty border definitions properly.  What problem are you having specifically?
Comment 3 duffy duck 2017-07-12 06:54:12 UTC
If ECMA OOXML spec allows this behavior then we will try to solve our problem on the SW which access the excel file.
Thanks
Comment 4 Javen O'Neal 2017-07-12 14:11:26 UTC
Since no action was taken, changing this to WON'T FIX.