Closed rgaudin closed 1 year ago
Might be related to #754?
Might be related to #754?
@kelson42 No
As you can see, the
favicon
property is not set.
@rgaudin However the faviconMimeType
attribute is set which (for the current not so fool-proof implementation) was an indicator that favicon info is provided. In a sense, this bug is about insufficient foolproofness. I have fixed it in #961. A follow-up issue might be if favicon
is set to an invalid value (e.g. favicon="%"
) :stuck_out_tongue_winking_eye: .
Ah ; interesting ; thanks for the fix!
There are (bad) reasons for a ZIM to lack an illustration:
favicon=""
(I guess?)Whether those are valid use cases is not important here. We've already stated elsewhere that despite not a wanted situation, it's one that can arise and that we support. Hence the Question Mark icon in libkiwix.
ZIM
fcc_en_test_2023-04
in https://dev.library.kiwxi.org has no illustration.This tells me there is an illustration. It should not.
Next, when querying this illustration:
This tells me there is a resource (HTTP
200
) but with aContent-Length: 0
. If the resource is missing, we should get an HTTP404
response.One consequence of those issues is that the viewer, rightfully, considers there is an illustration and thus requests the browser to displays it in place of the missing illustration placeholder.
Those issues happen with the ZIM is served via a
library.xml
file. Here's the catalog in use on the server:As you can see, the
favicon
property is not set.When served directly using the file, the behavior is different:
No link to the illustration 👍 If I'm trying to force it, I get a proper
404