Manifest validity check — correct nasArchiveTotal when manifest has ≤1 entry #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
If the NAS manifest exists but has ≤ 1 entry (corrupted, newly created, or written empty mid-backup),
buildManifestIndexuses it as-is.nasArchiveTotalshows 1 even though hundreds of files exist on NAS.Fix
In
BackupStatusService.buildManifestIndex, after decoding the manifest: ifmanifest.entries.count <= 1, calltransfer.listDirectoryand usemax(manifest.entries.count, directoryMediaCount)as a display floor fornasArchiveTotal.Critical: Do NOT add directory files as orphan
ManifestEntryobjects — this previously inflated archive count to 7421 (other devices files in the folder). Use directory count only for the UI display number.Acceptance
manifest.entriescount is never inflated by this fix