https://bugs.documentfoundation.org/show_bug.cgi?id=90421

            Bug ID: 90421
           Summary: mal-formed RTF link output causes seeming data
                    deletion
           Product: LibreOffice
           Version: 4.2.7.2 release
          Hardware: x86 (IA32)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: major
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: kevinjamesfi...@gmail.com

Created attachment 114569
  --> https://bugs.documentfoundation.org/attachment.cgi?id=114569&action=edit
long document with link on the first page

LibreOffice 4.2.7.2 build ID 420m0(Build:2) on Linux Mint 17, 32-bit.

Reproduceable bug in Writer.  If URL recognition is enabled in
Tools->AutoCorrect Options, make a file with two paragraphs.  In between them,
write "http://testlink/ " without quotes, but with the trailing space, so that
the link is recognized.  Save in RTF format.  The resulting file, if opened by
LibreOffice again, shows nothing that used to be after the link.  If opened by
Wine WordPad on wine-1.6.2, it's similar, except that even the link is not
shown.  Fortunately, the data IS actually still there, and if you manually
correct the RTF in a text editor, you're able to see it again in LibreOffice or
WordPad.

The RTF being generated for the link seems to be mal-formed, with many extra
closing braces in the middle:

\par \pard\plain
\s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\dbch\af5\langfe2052\dbch\af6\afs24\alang1081\loch\f3\fs24\lang1033{{\field{\*\fldinst
HYPERLINK "http://testlink/"; }{\fldrslt
{\cf2\ul\ulc0\langfe255\alang255\lang255\rtlch \ltrch\loch
http://testlink/}{}}}}}}{\field{\*\fldinst HYPERLINK }{\fldrslt {\rtlch
\ltrch\loch
 }
\par \pard\plain
\s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\dbch\af5\langfe2052\dbch\af6\afs24\alang1081\loch\f3\fs24\lang1033\rtlch
\ltrch\loch

I'm marking this as 'major' only because of the apparent effect: after typing a
long document and saving several backup copies, I then closed and later
reopened them only to find, in this particular case, that most of the document
appeared to be missing, in every backup I made, too.  Not a pleasant surprise
if you were someone or their grandpa, who might not know to look at the RTF in
a text editor to troubleshoot.

Thanks,
Kev

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to