Created attachment 194619 [details] A broken document from Ask The attachment is a bugdoc from https://ask.libreoffice.org/t/corrupted-file-cant-open-it/106693. It has a problem in the ZIP headers, making three images broken. Loading it gives an expected warning: The file 'M_F_Gervais English and Scottish Monarchs.odg' is corrupt and therefore cannot be opened. LibreOffice can try to repair the file. The corruption could be the result of document manipulation or of structural document damage due to data transmission. We recommend that you do not trust the content of the repaired document. Execution of macros is disabled for this document. Should LibreOffice attempt to repair the file? Answering "Yes" tries to reload, but ends up with Read Error. Format error discovered in the file in sub-document content.xml at position 2,1605412(row,col). It should open the file properly after repairment confirmation (in a repair mode, with some images missing). It was possible in AOO and in LO prior to commit ebf767eeb2a169ba533e1b2ffccf16f41d95df35.
https://gerrit.libreoffice.org/c/core/+/168596
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/bf02c5fa586d2ff7dbfac37d3ea0a07675efc15e tdf#161488: allow failed image loading in repair mode It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/10bc0a3619f0e7bba07985069cb99663cc688fb9 tdf#161488: allow failed image loading in repair mode It will be available in 24.2.5. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.