Closed veloman-yunkan closed 3 months ago
Rebased on main and addressed review comments of @kelson42 and @ShaopengLin in new commits. @mgautierfr has identified a good point that has to be answered before we merge this PR or decide to change its implementation.
@kelson42 I think that you missed the question that had to be answered before merging the PR.
@veloman-yunkan mist, was sure there was only one indeed.
Fixes #1128
When trying to display resources from an invalid ZIM file that fail to be retrieved due to problems with the ZIM data, now an HTML error page is returned instead. Note that the resource being accessed may in fact be an image, a CSS or a javascript file and the user may not see the error (though the appearance of the webpage trying to load and use that resource will be affected to various degrees).
To test the fix use the data from https://tmp.kiwix.org/corrupted_zim_crash/ and override the
library.xml
andkiwix-desktop.session
files in your~/.local/share/kiwix
directory with those found in the attached ZIP archive. Afterkiwix-desktop
is started it will contain two tabs: