Bug 48952

Summary: links to pdf-files on https servers are rendered wrong when creating pdf
Product: Fop - Now in Jira Reporter: Thomas Bauer <thomas.bauer.bugs>
Component: pdfAssignee: fop-dev
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: all   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Thomas Bauer 2010-03-21 18:24:44 UTC
External links to pdf-files on http-servers and https-servers seem to
lead to different output in fop pdf rendering, with the result that
links to pdf-files on https are not clickable in pdf reading programs.

My source is in docbook xml, example section:

<section> <title>test</title>
<para> <ulink url="http://xmlgraphics.apache.org"/> </para>
<para> <ulink url="https://xmlgraphics.apache.org"/> </para>
<para> <ulink url="http://xmlgraphics.apache.org/index.pdf"/> </para>
<para> <ulink url="https://xmlgraphics.apache.org/index.pdf"/> </para>
<para> <ulink url="file://index.pdf"/> </para>
<para> <ulink url="index.pdf"/> </para>
</section>

With xsltproc I get the same structure for each type of link from my source.
The pdf created from this with fop, however, creates different types of links, with the result that the https links are not clickable.

As Andreas Delmelle confirmed, there is a bug in subroutine org.apache.fop.pdf.PDFFactory.getExternalAction().
The order of checks is currently so that, for an "http://" URL, the code generates a PDFUri
action, and for an "https://" URL ending in ".pdf" a PDFGoToRemote action...

The file:// link issue seems already fixed in the trunk version of fop, I can however not verify it because it fails with some java problem, nor can I build the trunk version here due to a lack of a build system.


See also the thread on the fop users mailing list:
http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201003.mbox/%3c4B9D2466.8050008@t-online.de%3e
and Andreas Delmelle's answer:
http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201003.mbox/%3c834C292E-FEAE-4F23-9B22-A4F0720D0DF6@telenet.be%3e
Comment 1 Glenn Adams 2012-04-07 01:42:13 UTC
resetting P2 open bugs to P3 pending further review