Issue 4789 - Hyperlinks doesnt works
Summary: Hyperlinks doesnt works
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: PC Windows NT
: P3 Trivial (vote)
Target Milestone: OOo 1.1 Beta
Assignee: eric.savary
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-13 10:00 UTC by Unknown
Modified: 2003-02-23 14:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
simple file with problem (1.79 KB, application/octet-stream)
2002-05-17 11:36 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-05-13 10:00:21 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.
Comment 1 oc 2002-05-17 11:10:57 UTC
Hi Artur,
I can't reproduce your problem. Please attach a sample.
Regards, Oliver
Comment 2 Unknown 2002-05-17 11:36:57 UTC
Created attachment 1680 [details]
simple file with problem
Comment 3 peter.junge 2002-06-10 10:17:29 UTC
I'll have a look.
Comment 4 peter.junge 2002-09-23 16:37:36 UTC
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
Comment 5 thorsten.martens 2002-09-24 10:37:00 UTC
TM->ES: As talked to you,... please have a look, thanks !
Comment 6 eric.savary 2002-09-24 14:44:59 UTC
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?
Comment 7 michael.brauer 2002-10-10 14:54:44 UTC
No, but maybe Mathias has a clue.
Comment 8 Mathias_Bauer 2002-10-22 15:36:50 UTC
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.
Comment 9 Mathias_Bauer 2002-10-22 15:38:18 UTC
Sorry, my mistake, I confused this bug with another one.
Comment 10 Mathias_Bauer 2002-10-22 15:47:11 UTC
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.
Comment 11 tino.rachui 2002-12-03 12:26:19 UTC
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.
Comment 12 tino.rachui 2002-12-16 13:24:09 UTC
Changed Target Milestone.
Comment 13 tino.rachui 2003-02-04 09:10:09 UTC
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.
Comment 14 tino.rachui 2003-02-04 09:10:35 UTC
Fixed.
Comment 15 eric.savary 2003-02-17 15:55:29 UTC
verified
Comment 16 eric.savary 2003-02-23 14:12:57 UTC
Ok in 644m4s4