You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2015/06/29 20:17:30 UTC

[Bug 58084] New: Corrupted styles.xml for file created with XSSFWorkbook

https://bz.apache.org/bugzilla/show_bug.cgi?id=58084

            Bug ID: 58084
           Summary: Corrupted styles.xml for file created with
                    XSSFWorkbook
           Product: POI
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: findbastien@yahoo.fr

Created attachment 32862
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32862&action=edit
Test case see Main.java

In attachment a test case for this bug (see Main.java)

Basically :

1) I create a "reference" Workbook from a file "template.xlsx" that contains
only 1 custom style;
2) I create a "target" Workbook (empty)
3) I copy the custom style from the "reference" workbook to the "target"
workbook
4) I create one cell with the custom style
5) I output the target Workbook to a file
6) I close everyting and open the output file with Excel and I get an error
about "styles.xml" corrupted

For some custom the style in "template.xlsx" I can get a output file without
error, but with the one in the attached zip, it fails everytimes.

-- 
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


[Bug 58084] Corrupted styles.xml for file created with XSSFWorkbook

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58084

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #3 from Dominik Stadler <do...@gmx.at> ---
This should be fixed with r1717973, the border style was not copied over
correctly when cloning styles across workbooks. Please try the next nightly
build or version 3.14beta1 or newer as soon as it is released.

-- 
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


[Bug 58084] Corrupted styles.xml for file created with XSSFWorkbook

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58084

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |55800

-- 
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


[Bug 58084] Corrupted styles.xml for file created with XSSFWorkbook

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58084

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

-- 
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


[Bug 58084] Corrupted styles.xml for file created with XSSFWorkbook

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58084

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tienduong.nk@gmail.com

--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
*** Bug 55800 has been marked as a duplicate of this bug. ***

-- 
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


[Bug 58084] Corrupted styles.xml for file created with XSSFWorkbook

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58084
Bug 58084 depends on bug 55800, which changed state.

Bug 55800 Summary: cloneStyleFrom(CellStyle cellStyle) creates error "Unreadable content".
https://bz.apache.org/bugzilla/show_bug.cgi?id=55800

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

-- 
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


[Bug 58084] Corrupted styles.xml for file created with XSSFWorkbook

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58084

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Created attachment 33108
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33108&action=edit
Narrowed down to bare minimum required code

I worked a bit on reproducing this, the attached unit-test suffices to get an
invalid document, it seems the StylesTable that POI writes out is not fully
correct here.

-- 
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