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

            Bug ID: 159496
           Summary: An invalid ODF with an OLE fails to open, when asked
                    to repair package interactively
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 192314
  --> https://bugs.documentfoundation.org/attachment.cgi?id=192314&action=edit
An invalid ODT with an OLE

The attachment is simply a modified attachment 192313, in which I edited
META-INF/manifest.xml, replacing versions "1.3" with "1.2". This change created
a mismatch between the versions in content.xml and in the manifest, which is
detected in xmloff/source/core/xmlimp.cxx. Thus, when opening the document, a
warning is expectedly shown, offering to try to repair the package. But
confirming the prompt will fail with a "Read Error. Format error discovered in
the file in sub-document content.xml at 2,4222(row,col)." message.

On the other hand, this macro works fine:
sub OpenRepairPackage
  url = ConvertToURL("Path/To/ODF_version_mismatch__with_OLE.odt")
  dim args(0) as new com.sun.star.beans.PropertyValue
  args(0).Name = "RepairPackage"
  args(0).Value = true
  StarDesktop.loadComponentFromURL(url, "_blank", 0, args())
end sub

so the file *can* be repaired, and the failure in the interactive case is a
bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to