Skip to content

A fetched list's size cap of 0 (no limit) is enforced as a literal zero-byte ceiling (#937) - #938

Merged
Ninja-FSE merged 1 commit into
mainfrom
fix/937-a-list-zip-size-cap-of-zero-means-something
Sep 24, 2026
Merged

Ninja-FSE merged 1 commit into
mainfrom
fix/937-a-list-zip-size-cap-of-zero-means-something

Conversation

@Ninja-FSE

Copy link
Copy Markdown
Owner

Closes #937.

dcc_fetch.py's admission check already treats MAX_FETCH_LIST_FILE_SIZE = 0 as no limit (#302), but list_fetch.py's belt-and-braces on-disk-size check - run after a successful download, before the zip is opened - compared the raw value: with the setting at 0, any real file's size is "more than" 0, so every fetched list was rejected right after downloading it.

Reproduced live on the operator's own bot: a 19,916,132-byte zip refused with MAX_FETCH_LIST_FILE_SIZE (0) - refusing to open it, the setting explicitly set to 0 in the dashboard expecting "no limit".

Fix: the same list_zip_cap > 0 guard dcc_fetch.py already uses.

Test: test_zero_means_no_cap_here_too in tests/test_list_fetch.py. Mutation-checked - fails without the fix, with the exact message the operator saw.

Full suite 6693 OK.

🤖 Generated with Claude Code

…ro-byte ceiling (#937)

dcc_fetch.py's admission check already treats MAX_FETCH_LIST_FILE_SIZE = 0
as no limit (#302), but list_fetch.py's belt-and-braces on-disk-size check,
run after a successful download and before the zip is opened, compared the
raw value: with the setting at 0, any real file's size is "more than" 0,
so every fetched list was rejected right after downloading it - reproduced
live: a 19,916,132-byte zip refused with the setting explicitly at 0.

Fix: the same list_zip_cap > 0 guard dcc_fetch.py already uses.

tests/test_list_fetch.py: test_zero_means_no_cap_here_too, mutation-checked
against the exact reported failure (fails without the fix, with the same
message the operator saw).
@Ninja-FSE
Ninja-FSE merged commit 01e7517 into main Sep 24, 2026
9 checks passed
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.

A fetched list's size cap of 0 ("no limit") is enforced as a literal zero-byte ceiling

1 participant