[Libreoffice-bugs] [Bug 90903] FILESAVE: OOXML files saved by LO do not detect with Linux file command

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Sep 15 17:27:53 UTC 2020


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

--- Comment #9 from justus-dev at piater.name ---
A version of this problem exists for .pptx files generated by current LO
7.0.1.2, but not for the .docx and .xlsx files I rapidly generated and tested.

On my up-to-date Arch Linux system, on LO-generated .pptx files the file
command recognizes OOXML, but file -i (using different data / a different
algorithm) returns application/octet-stream. Therefore, the latter is also
returned by xdg-mime.

While this may well be rather a file bug, it appears to be within LO's powers
to fix (or work around) this by making the order of the top-level entries in
the zip match MS-Office-generated files.

I have successfully done this on my test .pptx files, by unzipping and
recomposing it thus:

zip -rD file.pptx [Content_Types].xml _rels ppt docProps

For the resulting file.pptx, the file command and thus xdg-mime return the
correct MIME type.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200915/1e1f0335/attachment.htm>


More information about the Libreoffice-bugs mailing list