[Upstream] Writer saving .odt to .rtf duplicates hyperlink

Bug #792942 reported by Bryce Nesbitt
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LibreOffice
Invalid
Critical
libreoffice (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: libreoffice
1) lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04

2) apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.3.2-1ubuntu5
  Candidate: 1:3.3.2-1ubuntu5
  Version table:
 *** 1:3.3.2-1ubuntu5 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages
        100 /var/lib/dpkg/status
     1:3.3.2-1ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages

apt-cache policy unoconv
unoconv:
  Installed: 0.3-6
  Candidate: 0.3-6
  Version table:
 *** 0.3-6 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen in LibreOffice Writer via the Terminal:

cd ~/Desktop && wget https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/792942/+attachment/2156505/+files/LO_Hyperlink_Test.odt && unoconv --listener && unoconv -f rtf LO_Hyperlink_Test.odt && lowriter -nologo LO_Hyperlink_Test.odt LO_Hyperlink_Test.rtf

the hyperlink looks the same in both files.

4) What happens instead is the hyperlink in the rtf is duplicated and appears next to the original hyperlink.

Tags: lo33
Revision history for this message
In , Bryce Nesbitt (bryce2) wrote :

Created attachment 47112
Mangled file

Step 1: Create a document and add a hyperlink.
Step 2: Save as "RTF" format.
Step 3: Close the file, load it again.
Step 4: Save as "RTF" under a new name

The files created in step 2 and 4 will double and quadruple the hyperlinked text. The actual defect is in the on disk file:

This is a }{{\field{\*\fldinst HYPERLINK "http://www.example.com/" }\cf2\ul\ulc0\langfe255{\fldrslt \cf2\ul\ulc0\langfe255\lang255\rtlch \ltrch\loch\lang255
TEST}
{{\field{\*\fldinst HYPERLINK "http://www.example.com/" }\cf2\ul\ulc0\langfe255{\fldrslt \cf2\ul\ulc0\langfe255\lang255\rtlch \ltrch\loch\lang255
}}TEST}

------------------------------------------------
LibreOffice 3.3.2
OOO330m19 (Build:202)
tag libreoffice-3.3.2.2, Ubuntu package 1:3.3.2-1ubuntu5

Revision history for this message
In , Yfjiang (yfjiang) wrote :

I can confirm this is reproduced in 3.3.1, but cannot reproduced in 3.4 rc1. Both of my systems are SLED 11 sp1 i586.

Hi Cedric,

Did we merged some patches possibly have this already fixed? Thanks for reviewing!

Revision history for this message
In , Iamtester8 (iamtester8) wrote :

Not reproduced with
Ubuntu 10.04.2 x86
LO 3.4

Revision history for this message
In , Bryce Nesbitt (bryce2) wrote :

Created attachment 47537
Same file, saved as DOCX

Revision history for this message
In , Bryce Nesbitt (bryce2) wrote :

Created attachment 47538
Same file, saved as ODT

Revision history for this message
In , Bryce Nesbitt (bryce2) wrote :

Created attachment 47539
Same file, saved as RTF. Note Hyperlink is doubleddoubled.

Revision history for this message
In , Bryce Nesbitt (bryce2) wrote :

Verified again today from scratch:
----------------------
LibreOffice 3.3.2
OOO330m19 (Build:202)
tag libreoffice-3.3.2.2, Ubuntu package 1:3.3.2-1ubuntu5

Linux ubuntu 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"

Revision history for this message
Bryce Nesbitt (bryce2) wrote :

This appears fixed, but they have not identified the specific patch:
I can confirm this is reproduced in 3.3.1, but cannot reproduced in 3.4 rc1.
Did we merged some patches possibly have this already fixed?

Revision history for this message
penalvch (penalvch) wrote :

Attachment from FDO upstream bug.

penalvch (penalvch)
description: updated
tags: added: lo33
Changed in libreoffice (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
summary: - Saving RTF file corrupts Hyperlinks (verified upstream)
+ [Upstream] Writer saving .odt to .rtf duplicates hyperlink
Changed in df-libreoffice:
importance: Unknown → Critical
status: Unknown → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Bryce Nesbitt, I am closing this bug because has been fixed in the latest development version of Ubuntu - Oneiric Ocelot.

This is a significant bug in Ubuntu. If you need a fix for the bug in previous versions of Ubuntu, please do steps 1 and 2 of the SRU Procedure [1] to bring the need to a developer's attention.

[1]: https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Changed in libreoffice (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
In , penalvch (penalvch) wrote :

Unreproducible in LibreOffice Writer 3.4.2.

lsb_release -rd
Description: Ubuntu oneiric (development branch)
Release: 11.10

apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.4.2-2ubuntu2
  Candidate: 1:3.4.2-2ubuntu2
  Version table:
 *** 1:3.4.2-2ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Bryce, according to this report, you are not using the most recent version of libreoffice-writer for your Ubuntu release. Please upgrade to the most recent version and let us know if you are still having this issue. Thanks in advance.

Revision history for this message
Bryce Nesbitt (bryce2) wrote : Re: [Bug 792942] Re: [Upstream] Writer saving .odt to .rtf duplicates hyperlink

On 08/30/2011 02:55 PM, Marcel Stimberg wrote:
> Bryce, according to this report, you are not using the most recent
> version of libreoffice-writer for your Ubuntu release. Please upgrade to
> the most recent version and let us know if you are still having this
> issue. Thanks in advance.
The "system updater" tells me I am up to date.
LibreOffice tells me I have:

LibreOffice 3.3.3
OOO330m19 (Build:301)
tag libreoffice-3.3.3.1, Ubuntu package 1:3.3.3-1ubuntu2

And the problem still happens and is trivial to reproduce.

Revision history for this message
Bryce Nesbitt (bryce2) wrote :

Here are is /etc/apt/sources.list

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ natty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ natty universe
deb http://us.archive.ubuntu.com/ubuntu/ natty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ natty-updates universe

Revision history for this message
Bryce Nesbitt (bryce2) wrote :

New test file, created from scratch. One hyperlink, saved to rtf.

Revision history for this message
Bryce Nesbitt (bryce2) wrote :

Note upstream note:

----------------------------------------------------
Yifan 2011-05-25 22:06:03 PDT
I can confirm this is reproduced in 3.3.1, but cannot reproduced in 3.4 rc1.
Both of my systems are SLED 11 sp1 i586.

Hi Cedric, Did we merged some patches possibly have this already fixed? Thanks for
reviewing!
----------------------------------------------------

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Bryce, I was asking because your initial report was still for 3.3.2 and it might have been that you did not have the update repository enabled. But your version is up-to-date. However, I can't reproduce the issue here (note that upstream confirms it for 3.3.1, not for 3.3.3). I open a document, chose "Insert -> Hyperlink" from the menu, enter "www.example.com" as a target and "hyperlink" as text, then "apply" and "close". Then I save as RTF (confirming that I really want to save as RTF) and get a file with just a single hyperlink… My result is attached.

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Ok, I investigated a bit further. I can now reproduce the bug: It is necessary to have some text *after* the link, i.e. a document with "Link" works fine, a document with "This is a link" also works, but "This is a link with some text" shows the "doubling". Could you update the description so it fits the SRU guidelines (use "TEST CASE")? Do you happen to know whether it works in Ubuntu 10.10, i.e. wether it is a regression? For a SRU we'd also have to identify the upstream patch fixing this issue.

Changed in df-libreoffice:
status: Confirmed → Invalid
Revision history for this message
Bryce Nesbitt (bryce2) wrote :

Marcel:
I don't appear to have control to do what you ask. In addiiton "Bug Watch Updater (bug-watch-updater) " closed the bug as invalid.
What's up?

This feature was fine in my last Ubuntu which was 10.04 LTS.

affects: df-libreoffice → ubuntu
Changed in ubuntu:
status: Invalid → Confirmed
Changed in libreoffice (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Please see comment #3 and do not undo the status. Marking Fixed Released.

Changed in libreoffice (Ubuntu):
status: Confirmed → Fix Released
affects: ubuntu → libreoffice
affects: libreoffice → df-libreoffice
Revision history for this message
Bryce Nesbitt (bryce2) wrote :

I'm TRYING to do the steps to get this considered for backporting to 11.04.
Regressions are Ubutu's Achilles heel.

Changed in df-libreoffice:
status: Confirmed → Invalid
Revision history for this message
Bryce Nesbitt (bryce2) wrote :

This bug is not "Invalid". It is reproducable, reproduced and verified.
You might decide to ignore it, but is a real one.

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Bryce, these Launchpad bug messages are a bit misleading at times. The upstream bug in the freedesktop bugtracker has been marked as "invalid" because in launchpad no better translation of the status "WORKSFORME" exists (please don't change the upstream status, it will be reset automatically after a while). The Ubuntu bug status is still unchanged. What is missing in this bug report is:
1. A change in the bug description so it matches the SRU guidelines (you can change the bug description by clicking the yellow icon at the top right of the description) -- in particular, state that it affects the newest version (that was misleading for me, before) and use the "TEST CASE: " format
2. (very important) the bug needs a "nominate for series" for Natty, i.e. a specific bug status only for Natty. Unfortunately, neither you or I have the rights to do that (you have to be member of bug control). Perhaps you could ping someone at the #ubuntu-bugs IRC channel on irc.freenode.net to do it for you?
3. Someone has to identify a patch fixing the issue. I had a quick look upstream and it seems the RTF export has been basically rewritten for 3.4 -- maybe it is not possible to identify a single patch and a backport instead of an SRU would be more appropriate.

Unfortunately I do not have the time to delve into this problem much deeper -- I can imagine that the way this bug is handled is frustrating, fixing bugs in stable releases is always a somewhat tedious process, in particular for huge packages like libreoffice...

Revision history for this message
In , Björn Michaelsen (bjoern-michaelsen) wrote :

closing

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.