Issue 29934 - empty hyperlinks lead to invalid RTF, and other problems
Summary: empty hyperlinks lead to invalid RTF, and other problems
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 97236 (view as issue list)
Depends on:
Blocks:
 
Reported: 2004-06-07 13:46 UTC by piater
Modified: 2017-05-20 11:25 UTC (History)
1 user (show)

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


Attachments
sxw containing "pseudo" hyperlink (5.14 KB, application/vnd.sun.xml.writer)
2004-06-08 13:11 UTC, michael.ruess
no flags Details
File that shows a defect hyperlink (2.75 KB, text/rtf)
2009-01-13 08:19 UTC, giso
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description piater 2004-06-07 13:46:19 UTC
Try this:
1. Open a new text document and write the following text:
   This is a hyperlink followed by some text.
2. Select the word "hyperlink".
3. Using right-click, Character, hyperlink tab, turn this into a hyerlink by
entering a URL.
4. Select the word "hyperlink" again.
5. Right-click, Character, hyperlink tab, clear out the URL and click "Apply".
Now, the word "hyperlink" is no longer visibly rendered as a hyperlink. However,
after saving the document as a .sxw, "content.xml" still embeds it into a
hyperlink element.
6. Save as RTF.
The RTF is invalid. When reloading it into OOo, the text following the word
"hyperlink" is dropped. (I had equivalent cases where the RTF would not load at
all but caused an error message by OOo.)
7. Save as Word 97.
When reloading the .doc into OOo, the word "hyperlink" is a hyperlink whose
target is a file URL corresponding to the same .doc file.

- The invalid RTF is definitely a defect.
- In my opinion, there should not be a way to specify empty hyperlinks. Either
there is a URL, or there is no hyperlink. 
- Or, if there is a plausible reason to allow empty hyperlinks, then (a) they
should be visibly rendered as hyperlinks, and (b) there should be an obvious and
fool-proof way to remove hyperlinks. The latter is a recurring issue and has
already received lots of discussion in this bug tracker.
Comment 1 michael.ruess 2004-06-08 13:11:01 UTC
Created attachment 15736 [details]
sxw containing "pseudo" hyperlink
Comment 2 michael.ruess 2004-06-08 13:12:25 UTC
MRU->MM: export the attached document to RTF and reload. The text following
"hyperlink" will not be displayed, though it available somewhere in the RTF code.
Comment 3 andreas.martens 2004-06-21 12:58:00 UTC
Because of a shortage of resources we have to retarget this issue to OOo later. 
Comment 4 martin_maher 2005-04-13 17:14:59 UTC
mmaher->flr: Yours I think
Comment 5 Mathias_Bauer 2006-08-30 15:15:20 UTC
reassigning to hbrinkm
Comment 6 giso 2009-01-13 08:16:40 UTC
Likely the same problem here.
When i type a web address like www.test.de, an hyperlink will be created.
When i delete the target of the hyperlink, the hyperlink seems to be gone.

When i export my document to a rtf file and reopen it, all text after the link
will be gone.

When i open the rtf in a text editor, i see three closing braces after the link.
Deleting two of them will bring back the missing text.

The bug is still present in OpenOffice 2.3 and 3.0 on Suse Linux and Windows Vista.
Comment 7 giso 2009-01-13 08:17:14 UTC
Likely the same problem here.
When i type a web address like www.test.de, an hyperlink will be created.
When i delete the target of the hyperlink, the hyperlink seems to be gone.

When i export my document to a rtf file and reopen it, all text after the link
will be gone.

When i open the rtf in a text editor, i see three closing braces after the link.
Deleting two of them will bring back the missing text.

The bug is still present in OpenOffice 2.3 and 3.0 on Suse Linux and Windows Vista.
Comment 8 giso 2009-01-13 08:19:19 UTC
Created attachment 59341 [details]
File that shows a defect hyperlink
Comment 9 michael.ruess 2009-01-29 17:20:48 UTC
*** Issue 97236 has been marked as a duplicate of this issue. ***
Comment 10 Marcus 2017-05-20 11:24:55 UTC
Reset assigne to the default "issues@openoffice.apache.org".
Comment 11 Marcus 2017-05-20 11:25:54 UTC
Reset assigne to the default "issues@openoffice.apache.org".