Skip to content

fix(importer): improve RAR/7zip error messages and password handling - #336

Merged
javi11 merged 1 commit into
mainfrom
fix/archive-processing-errors
Feb 25, 2026
Merged

fix(importer): improve RAR/7zip error messages and password handling#336
javi11 merged 1 commit into
mainfrom
fix/archive-processing-errors

Conversation

@javi11

@javi11 javi11 commented Feb 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • `ErrNoAllowedFiles` now includes the extensions actually found in the archive vs the configured allowed list — makes debugging much easier when imports fail silently (e.g. `found: [.nfo, .jpg], allowed: [.mkv, .mp4]`)
  • Error messages in RAR and 7zip processors now include the archive filename and specific failure reason
  • Password log level changed from info to debug to reduce log noise

Test plan

  • Import a RAR with non-standard extensions → error message shows found vs allowed extensions
  • `go test ./internal/importer/archive/...` passes

🤖 Generated with Claude Code

- ErrNoAllowedFiles now includes the actual extensions found in the
  archive vs the configured allowed list, making import failures
  actionable (e.g. found: [.nfo, .jpg], allowed: [.mkv, .mp4])
- Improve error messages in RAR/7zip processors to include archive
  filenames and specific failure reasons
- Change password info logs to debug level to reduce log noise

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@javi11
javi11 merged commit 26c0990 into main Feb 25, 2026
1 check passed
@javi11
javi11 deleted the fix/archive-processing-errors branch February 26, 2026 14:08
yoshitaka420 pushed a commit to yoshitaka420/altmount that referenced this pull request Jun 1, 2026
…ipsilabs#336)

- ErrNoAllowedFiles now includes the actual extensions found in the
  archive vs the configured allowed list, making import failures
  actionable (e.g. found: [.nfo, .jpg], allowed: [.mkv, .mp4])
- Improve error messages in RAR/7zip processors to include archive
  filenames and specific failure reasons
- Change password info logs to debug level to reduce log noise

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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