Repository navigation
ADFA-5042: build the ZIM download URL from the project subdir; bump to 1.1.2 - #346
Merged
Merged
Conversation
…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
deleted the
fix/ADFA-5042-zim-download-project-subdir
branch
August 6, 2026 02:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.