Commit Graph

3105 Commits

Author SHA1 Message Date
Veloman Yunkan
091e9370e9 Automatic wombatization in case of updated test data 2026-03-17 14:43:49 +04:00
Veloman Yunkan
e8dcf14fad Testing of an inter-page link with a hash
Added testing of an internal inter-page link with a fragment component.

Existing references to entries in issues.html served as such links
(which is how the bug was noticed), however it is better to have
a dedicated row in the test matrix for such a case.
2026-03-17 14:43:49 +04:00
Veloman Yunkan
755da7c255 Testing of links on a dynamic page
Note that the test dynamic page uses assignment to innerHTML (the method
of DOM manipulation is important in the context of interaction with
wombat.js which may not fully and correctly handle all the possible ways
in which dynamic content may appear).
2026-03-17 14:43:49 +04:00
Veloman Yunkan
cb15d155f6 Added testing results for wombatized pages 2026-03-17 14:43:49 +04:00
Veloman Yunkan
75f98b88ef Wombatization of test pages
Added a script for wombatization of test pages
2026-03-17 14:43:49 +04:00
Veloman Yunkan
db423a5ba9 Added a nested iframe test page
Also added a column to the test matrix table corresponding to this
additional dimension of testing.
2026-03-17 14:43:49 +04:00
Veloman Yunkan
75e34fa6e2 Enter test data for viewer testing
Added test data for centralized manual testing of various corner cases
of the kiwix-serve frontend.
2026-03-17 14:43:49 +04:00
Kelson
30adab7337 Merge pull request #1279 from kiwix/release-14.2.0
Release 14.2.0
14.2.0
2026-03-02 08:18:56 +01:00
Emmanuel Engelhart
d2d9cdf044 Add 14.2.0 Changelog 2026-03-02 08:17:20 +01:00
Emmanuel Engelhart
a833fde211 Bump-up version to 14.2.0 2026-03-02 07:58:28 +01:00
Kelson
a4720363a8 Merge pull request #1276 from kiwix/faster_removeAccents
Optimized removeAccents() for ASCII-only input
2026-02-27 17:26:13 +01:00
Veloman Yunkan
15e1194c63 Optimized removeAccents() for ASCII-only input 2026-02-27 19:40:57 +04:00
Veloman Yunkan
0021f2b336 A unit test for removeAccents() 2026-02-27 19:35:42 +04:00
Kelson
52f2de8a26 Merge pull request #1272 from kiwix/support_for_ipv4only_systems
Made kiwix-serve friendly to IPv4-only systems
2026-02-24 18:55:18 +01:00
Veloman Yunkan
34fc831c13 Documentation of a subset of Server API
Documentation of libkiwix API has been largely neglected. This commit
documents the Server API having to do with the functionality fixed in
the previous commit.
2026-02-24 16:10:57 +04:00
Veloman Yunkan
47f1a61443 Made kiwix-serve friendly to IPv4-only systems
kiwix-serve without an explicitly supplied -i option can henceforth run
on IPv4-only systems. Before this fix, an "Unable to instantiate the
HTTP daemon." error was being reported.
2026-02-23 20:04:04 +04:00
Veloman Yunkan
a3b246fd6d Extracted InternalServer::startMHD(flags, sockaddr) 2026-02-23 19:50:38 +04:00
Veloman Yunkan
75ff043476 Moved some code into InSockAddr::setAnyAddress() 2026-02-23 19:22:03 +04:00
Veloman Yunkan
0f7458c693 Extracted getMHDFlags() 2026-02-23 19:11:43 +04:00
Veloman Yunkan
add7c4cc3a Moved some code into InSockAddr::setAddress() 2026-02-23 19:11:43 +04:00
Veloman Yunkan
fcdc3a7eaf Extracted InSockAddr 2026-02-23 19:09:22 +04:00
Veloman Yunkan
db3705dd23 Errors in InternalServer::startMHD() as exceptions 2026-02-23 18:58:55 +04:00
Veloman Yunkan
3b34130cfc Extracted InternalServer::startMHD() 2026-02-23 18:14:09 +04:00
Veloman Yunkan
b773e93a95 Negative unit tests for starting the server 2026-02-23 18:14:09 +04:00
Veloman Yunkan
e481164258 Extracted test/testing_tools.h 2026-02-23 18:09:33 +04:00
Kelson
32cd7661ff Merge pull request #1274 from kiwix/no-pagination-atom-feed
No pagination for Atom feed URL
2026-02-23 10:14:07 +01:00
Emmanuel Engelhart
f29c69aac6 No pagination for Atom feed URL
New cache busting id for skin/index.js
2026-02-23 10:13:10 +01:00
Kelson
3fe9be88d4 Merge pull request #1273 from kiwix/add-10.211-to-known-loca-ip-range
Add 10.211 IPv4 range to known local ranges
2026-02-23 10:11:09 +01:00
Emmanuel Engelhart
910ad614c4 Add 10.211 IPv4 range to known local ranges 2026-02-23 10:10:59 +01:00
Kelson
724b6cc0cc Merge pull request #1220 from kiwix/dirScan
Introduce Manager::addBooksFromDirectory()
2026-02-22 20:01:34 +01:00
Nikhil Tanwar
c5ec7651a6 Introduce Manager::addBooksFromDirectory()
Added a function to load books from a directory. Requires rootPath to iterate over.
2026-02-22 19:35:07 +01:00
Kelson
949a612fd4 Merge pull request #1261 from shbhmexe/fix/stability-and-correctness-fixes
Fix core stability, correctness, and memory issues
2026-02-22 19:01:31 +01:00
shbhmexe
974a5ff87f Fix infinite loop and memory leak in getNetworkInterfacesWin
- Increment the iteration counter to prevent infinite loops when GetAdaptersAddresses returns ERROR_BUFFER_OVERFLOW.
- Free the previously allocated buffer before re-allocating to prevent memory leaks on retry.

Signed-off-by: shbhmexe <shubhushukla586@gmail.com>
2026-02-22 18:37:36 +01:00
shbhmexe
503e55c87e Fix various stability and correctness issues in libkiwix
- Fix infinite loop and memory leak in Windows network tools (networkTools.cpp)
- Improve exception safety in removeAccents using RAII (stringTools.cpp)
- Change getBookById to return by value to avoid dangling references (library.cpp)
- Use proper constant for HTTP 416 instead of magic number (response.cpp)
- Fix exception slicing in getDownload re-throw (downloader.cpp)

Signed-off-by: shbhmexe <shubhushukla586@gmail.com>
2026-02-22 18:37:36 +01:00
Veloman Yunkan
fb6448011b Merge pull request #1256 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2026-02-12 17:39:01 +04:00
Veloman Yunkan
9493c092ad Updated/regenerated static/skin/languages.js 2026-02-12 17:32:41 +04:00
translatewiki.net
52b02b964d Localisation updates from https://translatewiki.net. 2026-02-12 13:07:56 +01:00
Kelson
78124833b3 Merge pull request #1269 from kiwix/windows-2025-ci
Windows 2025 ci
2026-02-11 11:12:36 +01:00
Emmanuel Engelhart
0d9bab12b9 use windows-2025 runner for CI 2026-02-11 11:05:22 +01:00
Veloman Yunkan
650f2d0027 Merge pull request #1255 from pippotadde/fix-empty-pattern-737
Fix: avoid error on empty search pattern (#1255)
2026-01-12 12:38:07 +04:00
Veloman Yunkan
b6a13d9b03 Minor cosmetic clean-up
Performed minor cosmetic clean-up in the ServerSearchTest.searchResults
unit-test:

1. Fixed alignment in test data
2. Moved the test point for search query "yellow submarine" out of the
   set of test points for search query "jazz"
2026-01-12 12:21:56 +04:00
pippotadde
86f125f8fb Fix: avoid error on empty search pattern 2026-01-12 12:18:53 +04:00
pippotadde
3cd8554733 Tools: Add kiwix::trim() helper and unit tests 2025-12-28 20:31:51 +01:00
Kelson
a10f0f287f Merge pull request #1262 from kiwix/carriage-return-after-error
Carriage return after error
2025-12-27 11:55:07 +01:00
Emmanuel Engelhart
cdf48fc987 Add carriage return after error 2025-12-27 11:40:28 +01:00
Veloman Yunkan
ba598bda9b Merge pull request #1259 from pippotadde/pr_yellow_tests
Testing of a search pattern containing a space
2025-12-23 21:36:58 +04:00
pippotadde
0ad2710884 Tests: add yellow submarine search case 2025-12-23 17:02:52 +01:00
pippotadde
ab31ed9ca5 Tests: deduplicate yellow search results 2025-12-23 17:01:13 +01:00
Veloman Yunkan
86cbc303cb Merge pull request #1258 from pippotadde/pr_viewerjs
Frontend: guard empty search input
2025-12-23 17:50:25 +04:00
pippotadde
19d9bc36c8 Frontend: guard empty search input 2025-12-23 14:30:42 +01:00