Skip to content

fix(importer): keep colon named zip entries and the zip that holds skipped ones (#4131) - #4254

Draft
vavallee wants to merge 1 commit into
mainfrom
fix/zip-colon-names
Draft

vavallee wants to merge 1 commit into
mainfrom
fix/zip-colon-names

Conversation

@vavallee

@vavallee vavallee commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Follow up to #4134.

What

  • A colon in a zip entry name becomes an underscore (Dune: Messiah.epub extracts as Dune_ Messiah.epub, book.epub:Zone.Identifier as book.epub_Zone.Identifier). Before, such an entry was skipped silently and, in move mode, lost when the job folder was swept. A leading drive path (C:/x) still refuses the archive; A: B.epub and AB: C.epub now behave the same.
  • Entries still left out by name (named like the marker file, or on a Windows host a device name or trailing dot or space) are named in the Queue note and the log, and listed in the marker file. A marker that lists skipped entries keeps the job folder and zip out of the move mode sweep.
  • The Windows rules follow the package variable onWindows, so a test flips it on Linux CI. The skip note only mentions Windows names when a Windows rule applied.

Tests and mutations

Colon sanitise and drive agreement, ordinary names, Windows rules via the flag, move mode keeps the zip. Reverting the colon sanitise fails the colon tests, reverting the keep rule fails both move mode tests, hard coding the Windows flag false fails the flag test.

Not done

The note is still only shown when no book file is left, and a retry of a folder with the marker says it was already extracted; the marker file and the log carry the names. Extraction on Windows remains unverified.

Refs #4131

🤖 Generated with Claude Code

…the zip that holds them (#4131)

A colon in a zip entry name is now replaced with an underscore instead of
skipping the entry, so "Dune: Messiah.epub" is no longer lost. A leading drive
path still refuses the archive. Entries still left out by name are listed in
the Queue note, the log and the marker file, and a marker that lists skipped
entries keeps the job folder and its zip out of the move mode sweep. The
Windows rules follow the onWindows variable so a test can flip it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Signed-off-by: vavallee <vavallee@protonmail.com>
@vavallee vavallee added this to the v1.54.0 milestone Dec 2, 2026
@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.28571% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/importer/usenet_extras.go 85.71% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

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