https://issues.apache.org/bugzilla/show_bug.cgi?id=53734
Priority: P2
Bug ID: 53734
Assignee: [email protected]
Summary: Hyperlink parser does not accept URLs of type
"javascript://"
Severity: normal
Classification: Unclassified
Reporter: [email protected]
Hardware: PC
Status: NEW
Version: 3.8
Component: XSSF
Product: POI
Created attachment 29247
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29247&action=edit
Example Excel file that contains a single cell A1 that contains a hyperlink
with the URL "javascript://"
When creating a Workbook (org.apache.poi.ss.usermodel.Workbook internalWorkbook
= WorkbookFactory.create(inputStream)) an IllegalStateException is thrown if
the Excel docuemnt contains a hyperlink of the form "javascript://".
(Exception is thrown in method
org.apache.poi.xssf.usermodel.XSSFHyperlink.XSSFHyperlink(CTHyperlink,
PackageRelationship).)
Though this might sound like an exotic use casem it can occur frequently in our
web application when users copy & paste data from the Ajax GUI into a
spreadsheet.
But as in https://issues.apache.org/bugzilla/show_bug.cgi?id=52716 or
https://issues.apache.org/bugzilla/show_bug.cgi?id=53282 I really wonder why
the hyperlink handling is so strict (I wouldn't mind if an error or a warning
is logged, but throwing a runtime exception without giving a chance to control
or correct the situation is rather harsh.)
--
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]