From e24b40a4eb86d2e3a4e89c23ecd8c567628661eb Mon Sep 17 00:00:00 2001 From: Spinnich Date: Sat, 18 Jul 2026 20:11:21 +0000 Subject: [PATCH] docs(archives): correct RAR support claim in read_rar_archive_files The bundled Alpine 7zz build lacks the RAR codec: listing RAR members works, but streaming their contents fails with "Unsupported Method" (verified against the production image). Co-Authored-By: Claude Fable 5 --- backend/utils/archives.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/utils/archives.py b/backend/utils/archives.py index 0cc0e0706..f6d640359 100644 --- a/backend/utils/archives.py +++ b/backend/utils/archives.py @@ -399,7 +399,9 @@ def read_rar_archive_files( ) -> Iterator[tuple[str, int, Iterator[bytes]]]: """Yield eligible files from a RAR archive, sorted by internal path (ASCII). - Delegates to the 7zz binary, which natively supports RAR (v3-v5, read-only). + Delegates to the 7zz binary. Listing RAR members always works, but + streaming their contents requires a 7zz build with the RAR codec; the + bundled Alpine build lacks it, so content reads fail and log an error. """ return read_7z_archive_files(file_path, excluded_names, excluded_exts)