Files
dragonsstash/worker
admin 73b2c33305
continuous-integration/drone/push Build is passing
fix(worker): include the RAR signature in the ranged-listing sparse reconstruction
readRarListingRanged read the archive signature only to detect the RAR
version, then walkRarVolume began harvesting header regions at
pos = sigLen — the signature bytes themselves were never captured.
The reconstructed sparse file therefore started with zero bytes
instead of "Rar!", so every real unrar invocation rejected it as
"not RAR archive". This silently forced every RAR archive through the
expensive download+reupload fallback regardless of the source
channel's forwarding permission — defeating the forward-priority path
for the RAR-heavy channels it matters most for. The existing tests
didn't catch this because their assertions accepted either a null or
non-null result as passing, deferring real verification to production.
2026-08-11 23:17:22 +02:00
..
2026-07-23 11:18:57 +02:00