Apache OpenOffice (AOO) Bugzilla – Issue 31267
WW8: Relative hyperlinks exported as static links
Last modified: 2017-05-20 11:05:12 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
Created attachment 16334 [details] I tested with that testkit, hyplerlinks in "navigation.doc" will not work on your PC
reassigned to ES.
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.
@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.
MRU->HBRINKM: as describe (and I also reproduced that with my own documents). Hyperlinks are exported static to WW8 format, not as relative links.
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?
*** Issue 122009 has been marked as a duplicate of this issue. ***
Reset assigne to the default "issues@openoffice.apache.org".