[Libreoffice-bugs] [Bug 52477] New: Editing link with "track changes" enabled causes problem in XML of .docx format

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jul 25 19:44:41 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=52477

             Bug #: 52477
           Summary: Editing link with "track changes" enabled causes
                    problem in XML of .docx format
    Classification: Unclassified
           Product: LibreOffice
           Version: 3.5.4 release
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
        AssignedTo: libreoffice-bugs at lists.freedesktop.org
        ReportedBy: dannagifford at gmail.com


Created attachment 64661
  --> https://bugs.freedesktop.org/attachment.cgi?id=64661
Test document containing links

LibreOffice version: LibreOffice 3.5.4.2 Build ID: 350m1(Build:2)
OS: Ubuntu 12.04 64 bit

Editing the text of a link while "track changes" is enabled causes a problem in
the document.xml of a .docx file format.  What happens is that the XML open and
close tags for the edit get placed around the close tag for the link, for
example:

<w:hyperlink w:anchor="name">
<<<other tags>>>
<w: del w:author="my name">
</w:hyperlink>
<<<more tags>>>
</w:del>

In LibreOffice, this causes the document to be truncated at the point where the
track-changes-edit was made.  The document fails to open in Microsoft Office.

If your document gets truncated in this manner, it is possible to recover the
text by taking the document.xml file out of the .docx archive and editing the
XML file so that the edit tags no longer enclose the link end tag.

<w:hyperlink w:anchor="name">
<<<other tags>>>
**</w:hyperlink>
**<w: del w:author="my name">
<<<more tags>>>
</w:del>

However, if you re-save the file as a .docx, the problem emerges again.

Steps to reproduce:
1. Open attached file bug_test.docx
2. Turn on "track changes"
3. Delete all the text between two links, e.g.
") and harmful as (food-borne) pathogens ("
4. Save the document as bug_test2.docx
5. Close the document
6. Open bug_test2.docx; file is truncated at point where edit was made.

Work-arounds:
1. Save as another format
2. Don't use track changes (However, this is indispensable for collaborations)
3. Don't use links within your document

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Libreoffice-bugs mailing list