Skip to content

Keep the source archive's path out of stored archive-unavailable errors - #25

Merged
abrignoni merged 1 commit into
mainfrom
fix/scrub-archive-unavailable-messages
Sep 3, 2026
Merged

abrignoni merged 1 commit into
mainfrom
fix/scrub-archive-unavailable-messages

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Keeps the source archive's location out of stored "source archive unavailable" errors.

When a reference-mode row's zip cannot be read, the stored error named the zip where the case had recorded it, and the OSError text repeated it. That column reaches the reports and exports.

  • ArchiveUnavailable messages now end with the path after a colon, so the CLI and the gallery still say where the zip was
  • the two pipeline sites that store the message pass it through imaging.scrub_local_paths with the source record's path, keeping the reason and the evidence-relative member name
  • test_archive_reference.py gains a test that moves the zip after ingest, processes, and checks each stored error for the temp root and the case folder; it fails against the previous code

🤖 Generated with Claude Code

A reference-mode row whose zip cannot be read is recorded with a "source archive
unavailable" error, and the ArchiveUnavailable message named the zip where the
case had recorded it, on the examiner's machine, with the OSError text repeating
it. That column reaches the reports and exports.

The messages now end with the path after a colon, so the CLI and the gallery
still say where the zip was, and the two pipeline sites that store the message
pass it through imaging.scrub_local_paths with the source record's path, which
leaves the reason and drops the location. The member name is evidence-relative
and stays.

A new test in test_archive_reference.py moves the zip after ingest, processes,
and asserts each stored error keeps its prefix and carries neither the temp root
nor the case folder; it covers the per-file site and the video batch site.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@abrignoni
abrignoni merged commit 3c9faa8 into main Sep 3, 2026
8 checks passed
@abrignoni
abrignoni deleted the fix/scrub-archive-unavailable-messages branch September 3, 2026 19:59
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