Open veloman-yunkan opened 2 years ago
The reason for the errors is that the ZIM id in library.xml doesn't match the actual UUID of the ZIM file. The error is only triggered when there is at least one search result satisfying the query (that's why some search patterns lead to a 200 OK HTTP status code - it's when there is no search result matching that query).
The reason for the errors is that the ZIM id in library.xml doesn't match the actual UUID of the ZIM file.
Do we have a bug in kiwix-manage? How do we come to such a sitiation? Manual Tweak of library.xml?
@kelson42 Yes, it was a manually created library.xml file. More than a year ago I created one such file in test/data
where the same ZIM file was entered three times with different ids. Such a setup became an issue after #729.
To me this seems to bring the questionning around #754. How to handle zim metadata with library.xml and with/without ZIM file avcess.
There are strange internal server errors for certain search patterns when a ZIM file is served via library.xml (but not when it is served directly).
A reproducing test case (must be run in the libkiwix repository):