https://bz.apache.org/bugzilla/show_bug.cgi?id=66871
Bug ID: 66871
Summary: TargetURI in Relationship is overwritten with utf-8
encoded string
Product: POI
Version: unspecified
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: OPC
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Overview:
When you link a sheet cell that uses multi-byte characters in a shape, the link
is overwritten with a UTF-8 encoded string after writing the data, making the
link unusable.
Looking at the .rels file, the Target element is UTF-8 encoded.
Steps to Reproduce:
1) Create a sheet with multibyte characters.
2) Insert a shape and link any cell of the sheet created in 1 to that shape
3) Read a file with the XSSFWorkbook class and write arbitrary data with the
XSSFWorkbook.write() method
4) The link added in 2 becomes a string encoded in UTF-8 and cannot be used as
a link.
Actual Results:
link is not be used.
Expected Results:
Links can be used even after writing data.
Build Date & Hardware:
Version 5.1.0 (2021-11-01)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]