Bug 37556

Summary: Filesave as RTF doubles all hyperlinks
Product: LibreOffice Reporter: Bryce <bryce2>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: CLOSED WORKSFORME    
Severity: critical CC: cedric.bosdonnat.ooo, chris
Priority: medium    
Version: 3.3.2 release   
Hardware: x86 (IA32)   
OS: Linux (All)   
See Also: https://launchpad.net/bugs/792942
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 81234, 107733    
Attachments: Mangled file
Same file, saved as DOCX
Same file, saved as ODT
Same file, saved as RTF. Note Hyperlink is doubleddoubled.

Description Bryce 2011-05-24 14:56:33 UTC
Created attachment 47112 [details]
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
Comment 1 Yifan Jiang 2011-05-25 22:06:03 UTC
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!
Comment 2 tester8 2011-06-04 14:26:34 UTC
Not reproduced with
Ubuntu 10.04.2 x86
LO 3.4
Comment 3 Bryce 2011-06-04 15:18:01 UTC
Created attachment 47537 [details]
Same file, saved as DOCX
Comment 4 Bryce 2011-06-04 15:18:21 UTC
Created attachment 47538 [details]
Same file, saved as ODT
Comment 5 Bryce 2011-06-04 15:18:47 UTC
Created attachment 47539 [details]
Same file, saved as RTF.  Note Hyperlink is doubleddoubled.
Comment 6 Bryce 2011-06-04 15:21:48 UTC
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"
Comment 7 Chris Peñalver 2011-08-30 10:54:37 UTC
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
Comment 8 Björn Michaelsen 2011-12-24 04:45:26 UTC
closing