[Libreoffice-bugs] [Bug 96401] FILEOPEN: DOCX - Specific file reported as corrupted (openable in MSO but not in other programs because of unzip error)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Feb 10 17:06:55 UTC 2020


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

duge at pre-sense.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |normal
                 CC|                            |duge at pre-sense.de

--- Comment #15 from duge at pre-sense.de ---
I have an identical bug for xlsx files. I didn't create those files, but they
seem to be by this software:
Bio-Rad CFX Maestro 1.1 Version 4.1.2433.1219

It looks like this is problem in the zip implementation which was used to
create those OfficeOpenXml files. The delimiter for folders is being stored as
backslash \ instead of a slash /. And although a slash seems to the default
folder delimiter for zip files, Microsoft products open those zip files
flawlessly.

The Windows-Explorer (Windows 7) is able to extract those files. And the
Microsoft OneDrive online-office can also open them.
https://onedrive.live.com

You can actually take a OfficeOpenXML file created by LibreOffice, extract it
on Linux and convert it into such a messed up file. Just rename and convert all
slashes (directories) to backslashes.
mv _rels/.rels _rels\\.rels
Repeat for all files, delete the empty folders, repack the zip, rename to
docx/xlsx and upload to OneDrive.

In the end, I think this shouldn't be hard to fix. Especially because there
shouldn't be a legal case for "real" backslashes inside filenames, inside
OfficeOpenXML files.
So LibreOffice can simply interpret all backslashes inside filenames as
slashes.

Note: I also opened a ticket for 7-Zip, to see what those zip experts say.
https://sourceforge.net/p/p7zip/bugs/227/

-- 
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/20200210/ee4a9b59/attachment.htm>


More information about the Libreoffice-bugs mailing list