Bug 86026

Summary: Cannot extract or open files OLE-embedded within a .doc(x) when they are from a non-Office type
Product: LibreOffice Reporter: Adrien Demarez <adrien.demarez>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: gary.gruda, k_undertherug, stgohi-lobugs, vstuart.foote
Version: 4.2.7.2 release   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Adrien Demarez 2014-11-08 00:27:11 UTC
LibreOffice cannot properly open or extract documents embedded within a .doc(x) container when they should be open by another program than LibreOffice. A good example is to try to open (or export) the .zip / .pdf attachments from this document
http://cept.org/Documents/ecc-pt1/14999/ECC-PT1(14)014_rev1_Results-of-Public-Consultation-of-the-draft-amended-ECCDEC(11)06
Comment 1 A (Andy) 2014-11-08 12:18:07 UTC
Which specific issue do you mean?  Do you mean the layout of the doc/docx documents is wrong?  Or do you only mean that the pdf/zip documents are not opened?  
For me the pdf document is opened in the pdf reader as expected.

(tested with LO 4.3.3.2, Win 8.1)
Comment 2 Adrien Demarez 2014-11-08 13:57:30 UTC
I'm using Linux (XUbuntu 14.04 in my case, but I could reproduce the issue on other distributions).

The issue is that the pdf/zip documents are not opened (double-clicking on the item does not open any external program to open the file, and there is no submenu entry in LibreOffice that would allow to 'extract/export' the embedded file in order to open it manually)
Comment 3 A (Andy) 2014-11-08 14:58:11 UTC
Thank you very much for your fast reply.
I can open the pdf document with a pdf reader.  Maybe, this is a Linux only issue?  Can anybody else confirm this bug?
Comment 4 V Stuart Foote 2014-11-08 21:01:47 UTC
Setting, NEW and All but really only seeing issues with the Zip OLE objects.

On Windows 7 sp1, 64-bit en-US with
Version: 4.3.3.2
Build ID: 9bb7eadab57b6755b1265afa86e04bf45fbfc644

or with a current build of Master

The OLE stream for the linked Word .DOC(s) will open with Writer, and the PDF actually does open with the associated helper file--can change helper from Adobe Reader to GSView. 

Also, the .ZIP archive OLE objects are being extracted on document open into the users env variable defined TMP directory. 

But, while the Zip archives are available to manipulate with an archive or folder manager, they are not being opened from within the LibreOffice session.

Instead a double click on the OLE object's frame launches a dialog "Create Package" which looks to belong to the MS Object Packager2 packager.dll.mui, so that seems like a command name collision with the LibreOffice package2 module--http://opengrok.libreoffice.org/xref/core/package/util/package2.component

=-=

On a Linux--Fedora 20 32-bit LXDE and LO 4.2.6.3 the PCManFM file manager does not seem to correctly associate a file type with the OLE stream held as .tmp files written to user /tmp for the Writer session.  The Word .DOCs can be opened within the Writer session. And the PDF files can be opened out of the /tmp .tmp file with Evince--but not by a double click in Writer.  But the OLE stream for the .Zip file is not recognized.


=-=

Get the feeling that handling of the OLE embedded or linked objects is very dependent on the mix of OS, DE and configured file management for each type. Would lean toward this being an enhancement of some sort. I'm just not that up on what should and shouldn't work.
Comment 5 Gary Gruda 2015-01-19 20:07:06 UTC
Screen Shot 2015-01-19 at 1.31.43 PM.png

Keep getting this message when trying to open downloaded templates. I've uninstalled Java 8, reinstalled the same, quit the browser (Safari), quit LibreOffice, restarted everything, and still get the same error when I know the download and installation were done according to instuctions.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.