3116 Commits

Author SHA1 Message Date
Kelson
d7657e99a0 Merge pull request #1290 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2026-06-06 07:22:16 +02:00
translatewiki.net
fccc4e9167 Localisation updates from https://translatewiki.net. 2026-06-04 14:06:37 +02:00
Kelson
46b599fb2c Merge pull request #1297 from kiwix/libkiwix-14.2.1
Libkiwix 14.2.1
14.2.1
2026-05-09 17:31:46 +02:00
Emmanuel Engelhart
940abd2e8f Add 14.2.1 changelog 2026-05-09 17:00:35 +02:00
Emmanuel Engelhart
2f987ee727 Bump-up version to 14.2.1 2026-05-09 17:00:35 +02:00
Kelson
d072e57f05 Merge pull request #1298 from kiwix/exact_version_of_libmicrohttpd_url_parsing_change
Exact version of libmicrohttpd affecting the server unit-test
2026-05-09 16:58:37 +02:00
Veloman Yunkan
a7df774f54 More accurate value of MHD_VERSION in the server test
Identified the exact version of libmicrohttpd where the change in URL parsing
affects the server unit-test.
2026-05-09 17:37:25 +04:00
Kelson
7693557065 Merge pull request #1277 from BPerlakiH/1210-fix-docs
Update docs
2026-05-02 11:36:54 +02:00
Balazs Perlaki-Horvath
58e458b658 Update docs 2026-05-02 11:36:21 +02:00
Kelson
fb1b8b85e0 Merge pull request #1295 from kiwix/fix-ifram-bottom-white-line
Fix white line at bottom of iframe
2026-05-02 11:28:25 +02:00
zeyad elkholy
5cc3ce1895 Fix white line at bottom of iframe 2026-05-02 11:22:01 +02:00
Kelson
7e50bf611b Merge pull request #1294 from kiwix/handling-of-requests-with-wrong-root-url-prefix
Correct error message for requests with wrong root URL prefix
2026-05-01 11:32:55 +02:00
Veloman Yunkan
59ba61fcd2 Fixed the error text for requests with wrong root 2026-04-30 19:08:08 +04:00
Veloman Yunkan
40b9e2b876 New test-points demonstrating a bug in kiwix-serve
When kiwix-serve is started with a non-empty --urlRootLocation parameter and
a request for a URL *not* starting with the specified URL prefix is
received, the message in the error response contains a wrong URL. For
example if the URL root location is set to '/abc', and '/klmn/xyz' is
requested the error message reads:

  The requested URL "/abcINVALID URL" was not found on this server.
2026-04-30 19:02:17 +04:00
Veloman Yunkan
90867968c1 Dropped (unused) RequestContext::get_root_path() 2026-04-30 19:02:17 +04:00
Veloman Yunkan
fcebc2d4f6 Exposed MHD_VERSION to test/server.cpp
It turns out that the C preprocessor doesn't complain about undefined
macros used in the arithmetic expressions in `#if` directives (treating
those conditions simply as not satisfied). As a result, PR #1293 had
a slightly different effect from that which was intended. Now taking
the opportunity to correct that subtle mistake.
2026-04-30 18:55:42 +04:00
Kelson
d24bd1ea3e Merge pull request #1293 from kiwix/workaround_for_libmicrohttpd_1.x
"Fixed" the server unit-test for libmicrohttpd 1.x
2026-04-30 15:23:56 +02:00
Veloman Yunkan
20b3dd77bc "Fixed" the server unit-test for libmicrohttpd 1.x
libmicrohttpd 1.0.5 (the version used at this point under the debian
testing distribution) seems to return an HTTP 400 (Bad Request) error
if the URL contains an invalid URI-encoding sequence, thus breaking
our unit-tests involving such URLs. Upgrading our libmicrohttpd
dependency is not easy, so this change is an optimistic attempt to fix
the build of the libkiwix package under debian testing.
2026-04-30 17:01:02 +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