[Bug 64732] New: XSSFSheet.createTable generates corrupted file when a header's cell contains a line break

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 64732] New: XSSFSheet.createTable generates corrupted file when a header's cell contains a line break

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64732

            Bug ID: 64732
           Summary: XSSFSheet.createTable generates corrupted file when a
                    header's cell contains a line break
           Product: POI
           Version: 4.1.2-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

After calling XSSFSheet.createTable using an AreaReference with a cell
containing a line break in a column header, the generated Excel file is
corrupted.

Everything is described in detail here:
https://stackoverflow.com/questions/63814180/apache-poi-createtable-generates-corrupted-file-when-a-headers-cell-contains-a

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64732] XSSFSheet.createTable generates corrupted file when a header's cell contains a line break

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64732

Nick Burch <[hidden email]> changed:

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

--- Comment #1 from Nick Burch <[hidden email]> ---
A quick check shows that XSSFDataValidation has code to do this encoding, and
XSSFRichTextString has code to do the decoding

Would it make sense to pull that out to a util method (XMLHelper? StringUtil?
other?) for re-use, then call that for the Table header case too?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64732] XSSFSheet.createTable generates corrupted file when a header's cell contains a line break

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64732

--- Comment #2 from PJ Fanning <[hidden email]> ---
Hi Nick - sharing the code in a util makes sense

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64732] XSSFSheet.createTable generates corrupted file when a header's cell contains a line break

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64732

--- Comment #3 from PJ Fanning <[hidden email]> ---
XMLHelper would probably be a good place

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]