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

          Priority: medium
            Bug ID: 61606
          Assignee: [email protected]
           Summary: LibreOffice should import and export custom XML parts
                    in Office Open XML documents
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: UNCONFIRMED
           Version: 4.0.0.3 release
         Component: filters and storage
           Product: LibreOffice

Created attachment 75682
  --> https://bugs.freedesktop.org/attachment.cgi?id=75682&action=edit
A file with a custom XML part inside.

The Office Open XML document format allows custom XML files to be included in
the zip file (Spec Part 1, ยง15.2.5). This is for programs to store information
in these files and they should be kept there even when an office program opens
and saves the file.
When opening such a document in LibreOffice and saving it again, the custom
parts are lost. Depending on the workflow of the third-party tools, this can
cause loss of data which is expected to be kept in the document.

Steps to reproduce:
1. Open the attached file "file-with-custom-xml.xlsx" with a zip program, and
see the contents. There is a folder called "custom" with a file called
"custom.xml", and the files "/[Content_Types].xml" as well as the
"/_rels/.rels" contain references to this file.
2. Open the file in MS Office 2007 or later, save it under a new filename. See
the contents of the file, the "custom" folder with the file inside is still
there.
3. Open the file in LibreOffice, save it under a new filename. See the contents
of the file, the folder is gone.

It would be nice if LibreOffice ignores the contents of these files, so one is
not limited to putting XML inside. Microsoft Office ignores the contents, so
any other file type can be used.

When there is no reference in the [Content_Types].xml or the .rels file, the
custom files can be safely deleted.

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

Reply via email to