Skip to content

ADFA-5042: build the ZIM download URL from the project subdir; bump to 1.1.2 - #346

Merged
luisguzman-adfa merged 1 commit into
mainfrom
fix/ADFA-5042-zim-download-project-subdir
Aug 6, 2026
Merged

luisguzman-adfa merged 1 commit into
mainfrom
fix/ADFA-5042-zim-download-project-subdir

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

The Kiwix download runner hardcoded https://download.kiwix.org/zim/wikipedia/, so only Wikipedia ZIMs downloaded and every other category failed with aria2 exit code 3 (404). The URL now uses each request id's project subdirectory (base + "/"), with basename for the local file. The subdir is required (a bare filename is rejected with a clear error) and ids are guarded against path traversal.

Bumps dash-node to 1.1.2 so the update surfaces via the update-check pill. Pairs with the app PR that sends / per ZIM.

…o 1.1.2

The Kiwix runner fetched every ZIM from download.kiwix.org/zim/wikipedia/,
so any non-Wikipedia ZIM (zimit, other, gutenberg, ted, …) 404'd and aria2
exited with code 3. Build the URL from each id's project subdirectory
(base + "<project>/<file>"); basename is used only for the local file/display.
The project subdir is now required — a bare filename is rejected — and ids
are validated (no "..", safe charset) before the outbound URL.

Bump dash-node 1.1.1 -> 1.1.2 so clients see the update and rebuild.
@ghost
ghost merged commit 4609028 into main Aug 6, 2026
@ghost
ghost deleted the fix/ADFA-5042-zim-download-project-subdir branch August 6, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant