Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing
|Summary:||WW8: Relative hyperlinks exported as static links|
|Product:||Writer||Reporter:||Rainer Bielefeld <rainerbielefeld_ooo_qa>|
|Component:||code||Assignee:||AOO issues mailing list <issues>|
|Status:||CONFIRMED ---||QA Contact:|
|Priority:||P3||CC:||dan, issues, michael.ruess, paul_henry|
|Issue Type:||DEFECT||Latest Confirmation in:||---|
Description Rainer Bielefeld 2004-07-08 20:49:40 UTC
I saw this with 1.1.2RC3 (German) WIN XP: [645m44(Build8784)] 1. create a folder "relativetoabsolute" 2. create subfolder "relativetoabsolute\sub1" 3. create subfolder "relativetoabsolute\sub2" 4. create OOo-documents "relativetoabsolute\sub1\sub1.sxw" "relativetoabsolute\sub2\sub2.sxw" (with arbitrary content) and also save tzose files as "sub1.doc" and "sub2.doc" in its folders 5. create an OOo writer docment "navigation.sxw" with hyperlinks to "sub1.sxw", "sub2.sxw", "sub1.doc", "sub2.doc" , save it also as "navigation.doc" 6. close all "sub-files" and try hyperlinks in "navigation.sxw" and also hyperlinks in "navigation.doc" result as expected: everything works fine, all hyperlinks open the correct "sub- files" 11. close all files 12. rename folder "relativetoabsolute" to "rrrrelativetoabsolute" 13. open "navigation.sxw" and try hyperlinks expected: everything works fine, all hyperlinks open the correct "sub- files" actual: as expected 14. open "navigation.doc" and try hyperlinks expected: everything works fine, all hyperlinks open the correct "sub- files" actual: none of the hyperlinks works, they still lead to "relativetoabsolute\ This issue might be related to issue 22050 and issue 22107, which are fixed for OOo680m38. Is that fix also fit for this problem here? I believe this problem happens with all OS and all platfoms, but please chek! Rainer
Comment 1 Rainer Bielefeld 2004-07-08 20:54:18 UTC
Created attachment 16334 [details] I tested with that testkit, hyplerlinks in "navigation.doc" will not work on your PC
Comment 2 michael.ruess 2004-07-09 09:18:48 UTC
reassigned to ES.
Comment 3 runping 2005-02-04 20:13:49 UTC
I replicated the bug with OOo 1.1.2, Microsoft Word 2002 build 10.2627.3311, and Windows XP Version 2002 Service Pack2. Here are the replication steps: 1.Create a folder in any directory. Name it â€œRelativeToAbsoluteâ€. <\RelativeToAbsolute\> 2.Create two sub folders in that folder. Name them â€œSub1â€ and â€œSub2â€ respectively. <\RelativeToAbsolute\Sub1\, \RelativeToAbsolute\Sub2\> 3.Create one text file in each sub folder. Name them â€œsub1.sxwâ€ and â€œsub2.sxwâ€ respectively. <\RelativeToAbsolute\Sub1\sub1.sxw, \RelativeToAbsolute\Sub2\sub2.sxw> 4.Also save these two files in Microsoft Word 97/2000/XP format with same name. <\RelativeToAbsolute\Sub1\sub1.sxw sub1.doc, \RelativeToAbsolute\Sub2\sub2.sxw sub2.doc> 5.Create a new text file in folder â€œRelativeToAbsoluteâ€. Name it â€œnavigation.sxwâ€ <\RelativeToAbsolute\navigation.sxw> 6.Insert four document hyperlinks into navigation.sxw. Each link refers to one file created above. <Insert -> hyperlink -> document -> path> 7.Save it as Microsoft Word 97/2000/XP format with the same name in the same folder. <\RelativeToAbsolute\navigation.sxw, navigation.doc> 8.Rename folder â€œRelativeToAbsoluteâ€ to â€œRRRRelativeToAbsoluteâ€. 9.Open â€œnavigation.sxwâ€ and test the document hyperlinks. All four documents can be opened via clicking on the hyperlinks. 10.Open â€œnavigation.docâ€ using Microsoft Word 2002. None of the four documents can be opened via clicking on the hyperlinks. I further use OpenOffice to open the problematic word file. All four document hyperlinks work correctly. I also replicate the bug without renaming the folder. The bug exists only when user uses Microsoft Word to open a doc format file that is previously operated and saved by OpenOffice. I consider the main course of the bug is that Microsoft Word doesn't recognize the hyperlinks inserted by OpenOffice.
Comment 4 eric.savary 2007-03-27 09:53:09 UTC
@MRU: it looks like a Word export problem. As if we saved the path to hyperlink absolut when saving to .doc. Trying to dum up: - save document called "Navi.doc" in a dir called <anywhere_you_want>\BASEDIR\ - Insert a hyperlin in this doc pointing to an document like <anywhere_you_want>\BASEDIR\other.doc - save the navi.doc - close it - Rename BASEDIR to something else - Open the Navi.doc *in Word* -> the hyperlink still points to BASEDIR instead of the renamed directory.
Comment 5 michael.ruess 2007-03-27 12:18:52 UTC
MRU->HBRINKM: as describe (and I also reproduced that with my own documents). Hyperlinks are exported static to WW8 format, not as relative links.
Comment 6 maximvelichko 2008-04-14 16:22:16 UTC
It still does not work with OpenOffice 2.4. It is very easy to reproduce and does not require different directories. Just an ODT file reffering to a DOC-file in the same directory. While the former ODT-file is in OpenOffice format it contains a relative path. (And contains something like the following in the context.xml: <text:a xlink:type="simple" xlink:href="../other.doc#chapter-2-1-1">[2.1.1]</text:a> ) but after the ODT-file is saved to DOC-format the reference becomes absolute, which is abosultely weird (if you have two such files and want to publish them on web, or send to someone, then this unlucky someone will not be able to follow the reference.) The problem is obviously in the MSWord 97/2000 filter. Are there any plans to fix it? Or maybe there can be a workaround?
Comment 7 oooforum (fr) 2017-03-29 09:38:09 UTC
*** Issue 122009 has been marked as a duplicate of this issue. ***