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

--- Comment #24 from Mike Kaganski <mikekagan...@hotmail.com> ---
So: you are able to open the file, *if* you open it using an *explicitly
selected* DOCX filter in the Open dialog.

Why it fails when opened normally:
1. It uses a normal auto-detect procedure.
2. In it, it iterates all filters, asking each to try to detect the file.
3. In the list, DOCX filters happen to come prior to ODF ones ...
4. But DOCX filters, when encountering the ZIP error, fail silently
5. While ODF ones, when see the same ZIP error, produce the warning, and then
proceed with the procedure from comment 23 - which is described by "We don't do
any type detection on broken packages (f.e. because it might be impossible),
so for repairing we'll use the requested type, which was detected by the flat
detection" comment there.

Which makes LibreOffice use an ODF filter unconditionally on this file, which
finally expectedly fails elsewhere.

The problem is: we need to handle the ZIP error early, and introduce the repair
mode early, still keeping the autodetection with it. Because it won't help to
allow DOCX filters do the same as ODF, which would then disallow broken ODF
opening - DOCX would intercept them then, and the problem would be reversed.

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

Reply via email to