Issue 109954

Summary: PDF Export: Link to www target with special character in domain name becomes link to file on local HDD
Product: General Reporter: bbyron <bbyron>
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: normal    
Priority: P3 CC: issues, jes, rainerbielefeld_ooo_qa
Version: OOo 3.3 or older   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation on: 4.2.0-dev
Developer Difficulty: ---
Description Flags
Open Office Doc
Test Kit none

Description bbyron 2010-03-08 19:42:18 UTC
I created the following document in OpenOffice Writer:

This document includes multiple links to websites. The first link goes to:

I set up all links in this document the same and they all work when I 

The problem comes when converting the document to PDF. I clicked File > Export 
as PDF > Export (leaving all PDF settings at default) to get this PDF:

All links remain the same except the first, which has been somehow changed to: 

e_other_side_of_lisbuilding_with_russell_brunson.html (the file location of the 
new PDF has been added to the beginning of the link).

I have tried everything I can think of to get around this with no luck. I have 
also tried linking to other similar URLs, including:


These links have the same result of the added file location each time the 
OpenOffice document is converted to PDF. 

I want to emphasize that this change only occurs on the first link in my 
document. The others work fine after the file is converted to PDF. 

I have also tested these same links with other PDF writers and they all work 
perfect every time.
Comment 1 bbyron 2010-03-08 19:45:05 UTC
Created attachment 68228 [details]
Open Office Doc
Comment 2 bbyron 2010-03-08 19:46:19 UTC
Created attachment 68229 [details]
Comment 3 Rainer Bielefeld 2010-03-09 07:43:34 UTC
I can reproduce the efefct with "01OtherSideOfListbuilding.odt" and with
"Ooo-Dev 3.3.0 multilingual version English UI WIN XP: [DEV300m73 (Build 9456)]"!
I can not reproduce that with self created documents.
When I copy the transparent image covering "Click here to play Audio Book" to an
own document, the problem remains, although links in other images will work fine.

Please provide a step by step instruction how to create such a defective link
"from the scratch"; please also contribute information concerning all your
relevant settings.
Comment 4 michael.ruess 2010-03-11 14:39:00 UTC
Reproducible with attached sample. The document path is added to the hyperlink
on the graphic.
Comment 5 Rob Weir 2013-07-30 02:17:14 UTC
Reset assignee on issues not touched by assignee in more than 2000 days.
Comment 6 Joe Smith 2014-05-28 21:50:49 UTC
I'm not able to reproduce this testing with AOO 4.1 on Fedora Linux with a new document.

With the attached test document, I see the same results as mentioned in comment 3 above.

If I open the test document 01OtherSideOfListbuilding.odt and edit the link from the first page:
Right-click > Picture > Hyperlink, erase the original URL and type in
then export to pdf, I get a working link.

If I go back and paste in the original URL
then export to pdf again, I get a broken link.

For this link, the pdf contains the code

It seems that OO treats this is a local file link, so it modifies the link and quotes the /s.

If I go back again and paste in this link address:
(all underscores changed to hyphens), then export to pdf, I get a correct link in the pdf.

It seems that the presence of the underscores is causing the problem.

Trying again with leads to this code in the pdf:

So, one underscore is enough to cause the damage.
Comment 7 Rainer Bielefeld 2014-05-29 06:01:52 UTC
Created attachment 83480 [details]
Test Kit

Still Reproducible with "AOO 4.2.0-Dev – German UI / German locale [AOO420m1(Build:9800)  -   Rev. 1597166  2014-05-20 1]" on German WIN7 Home Premium (64bit)", “historic” 4. User Profile used for all predecessor versions

In odf documents of attached simplified test kit you will find 3 Links:
* Link 1 has an underscore in html document name: link in PDF export looks
   fine, leads to WWW
* Link 2  has an underscore in domain name: link in PDF export is to 
  local file, not to www :-(
* Link 3 has underscore in domain name replaced by encoded blank: link in 
  PDF export is to local file, not to www   :-(

All links to not existing targets, you can see in Tooltip whether it leads to local file or www
Comment 8 Rainer Bielefeld 2014-05-29 06:10:12 UTC
Additional Info:
(a) As new test kit shows problem is not limited to Writer, same in Calc
(b) Problem seems limited to special characters in domain name
(c) additional to results of Comment 6: also other special characters in
    domain name can cause the problem
(d) an additional test (not included in test kit) with underscore in
    path name (
    showed that this does not cause a problem as the reported
(e) Test shows that problem has nothing to do with graphic, also in text links
Comment 9 Rainer Bielefeld 2014-05-29 06:14:19 UTC
(f) Was still ok with OOo 2.0.2
(g) already broken in OOo 3.1.1