Bug 61272

Summary: In style.xml is inserted the tag <border/> without attributes
Product: POI Reporter: duffy duck <c.dellacqua>
Component: XSSFAssignee: POI Developers List <dev>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P2    
Version: 3.14-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: All   

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.