Bug 59775

Summary: [PATCH] XSSFHyperlink has wrong type if it contains a location (CTHyperlink#getLocation)
Product: POI Reporter: Guillermo Alvarez <alvarezg>
Component: XSSFAssignee: POI Developers List <dev>
Severity: normal Keywords: PatchAvailable
Priority: P2    
Version: 3.12-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Sample test file
Proposed solution for XSSFHyperlink

Description Guillermo Alvarez 2016-07-01 09:01:08 UTC
Created attachment 33998 [details]
Sample test file

Tested with attached file created in MS Excel, hyperlinks for URLs containing '#' char are stored using both target and location properties. But XSSFHyperlink sets type to Hyperlink.LINK_DOCUMENT if location is not null.
Comment 1 Guillermo Alvarez 2016-07-01 09:04:03 UTC
Created attachment 33999 [details]
Proposed solution for XSSFHyperlink

patch created with git format-patch, hope the format is valid
Comment 2 Javen O'Neal 2016-07-17 05:45:38 UTC
Thanks for the patch! Applied in r1753013 with a unit test.
Comment 3 Guillermo Alvarez 2016-07-18 09:54:04 UTC
Great news, thanks!