Apache OpenOffice (AOO) Bugzilla – Issue 4789
Hyperlinks doesnt works
Last modified: 2003-02-23 14:12:57 UTC
I've created document in M$ Excel and then I've opened it with OO. In my document I have links to HTML files on my network (mapped) hard drive. When I click on any of this link program reports that this file doesnÂ’t exist. In path edit box I have: file:///X:/proj/document/atos/design/dd.html and in Target: ATOS_Startup_Password Both file and target exists. When I didnÂ’t define Target then HTML link is opened fine.
Hi Artur, I can't reproduce your problem. Please attach a sample. Regards, Oliver
Created attachment 1680 [details] simple file with problem
I'll have a look.
Hi, same in writer if MIME-types are not set correctly. I guess it's not a bug but I think the framework specialists should have a look. Peter
TM->ES: As talked to you,... please have a look, thanks !
ES->MIB: How to reproduce: - new HTML doc - "Insert - Bookmark", name it "foo" - save the HTML doc - new document (Writer, Calc... doesn't matter) - insert an hyperlink pointing to the bookmark of the HTML doc (the easiest way is to D&D from the Navigator) - click on the Hyperlink -> "File not found" Note: Don't know if it has something to do with mime types, html or something else. The fact is: links to Bookmarks (<A NAME> tag) won't be recognized ("File not found" on click). But this tag looks well written in the HTML source code This happhens only when the target is an HTML document. This is broken OOo/SO6.0. Do you have any clue?
No, but maybe Mathias has a clue.
This is a known bug. The problem is an incorrect handling of URLs containing a jump mark. The bug is fixed in the latest SRX643 build, maybe also in the official OOo SRX643 build.
Sorry, my mistake, I confused this bug with another one.
The *real* reason is that the code that starts the system browser converts the URL to a file name, and then the hashmark is treated as part of the file name.
Jump marks (fragment identifier's according to RFC2396) are not part of an Uniform Resource Identifier (URI) and will not be handled correctly when used in file url's, so the only chance is to remove the jump mark. Will fix it this way, not nice but I currently have no other idea. BTW even MS Office XP has no other idea then removing the jump mark.
Changed Target Milestone.
As aforementioned we now remove jump marks in file urls, not really nice but I currently see no other solution. Even restricting the Hyperlink dialog and forbid to enter jump marks in file urls works only partially because of alien documents.
Fixed.
verified
Ok in 644m4s4