Closed benoit74 closed 7 months ago
@MohitMaliFtechiz Very serious bug/topic, please look in priority. I can only insist again than URL parsing should be solid and well tested.
@benoit74 Thanks for providing the ZIM file, we have refactored our code to support the URLs in our application at https://github.com/kiwix/kiwix-android/pull/3768. Now it is working like kiwix-server
.
Great ! I just had a look at the video in PR and confirm the new behavior is exactly as expected. Glad a great test case / ZIM helped to solve this complex topic so fast!
@benoit74 Thanks for giving your valuable feedback.
I've installed last nightly and can confirm it works as expected from my PoV.
Description
See https://github.com/openzim/libzim/issues/865#issuecomment-2003154791 for details. We should probably wait for discussion to settle in this issue before developing some on Android, but we most probably have to fix something on Android.
We have a test ZIM at https://tmp.kiwix.org/ci/zim_characters_encoding/characters_encoding.zim with many situations in terms of URL encoding inside an HTML document and corresponding ZIM entry path.
Current Android reader behavior is not aligned with kiwix-serve behavior and will probably have to aligned (again, once discussion on https://github.com/openzim/libzim/issues/865 has settled) :
Environment