mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4978] [MERGED] fix: keep backups working with large local assets #6565
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6565
Loading…
Add table
Add a link
Reference in a new issue
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4978
Author: @SpicyMarinara
Created: 8/13/2026
Status: ✅ Merged
Merged: 8/13/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/backup-large-assets📝 Commits (10+)
3aded09fix: keep backups working with large media4036fd6Merge remote-tracking branch 'origin/staging' into agent/backup-large-assetsa34a2bdtest: prove large media backup restoree18b88dsecurity: scope large backup media streamingf73c3d5Merge remote-tracking branch 'origin/staging' into agent/backup-large-assetsfba035atest: omit oversized non-media backups526715efix: keep backup manifests loadable347d150Merge branch 'staging' into agent/backup-large-assets0a486ecfix: report partial backup omissions64ef2eafix: bound large backup writes📊 Changes
7 files changed (+851 additions, -218 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/routes/backup.routes.ts(+499 -194)📝
packages/server/src/services/import/profile-import-assets.ts(+79 -18)➕
packages/server/src/utils/crc32.ts(+27 -0)📝
packages/server/src/utils/media-file-security.ts(+8 -5)📝
scripts/regressions/automatic-backup-retention.regression.ts(+214 -1)📝
scripts/regressions/profile-import-asset-security.regression.ts(+23 -0)📄 Description
Why
Automatic and downloadable full backups inherited the 256 MiB untrusted profile-entry ceiling. A 376,363,985-byte local GIF therefore aborted the entire automatic backup even though Marinara writes backup files as uncompressed streams.
What changed
RESTORE.txt, retained in automatic-backup status, and counted on download responses.Validation
pnpm check.pnpm regression:backup.pnpm regression:profile-import-security:run.Automated coverage uses a small injected limit by default.
MARINARA_REAL_LARGE_BACKUP_REGRESSION=1 pnpm regression:backupexercises the production writer, ZIP reader, streamed CRC/magic validation, and restored file at the reported 376,363,985-byte size. It also proves a valid strict entry remains restorable when unreadable and oversized non-media entries are omitted.No linked issue; this is a maintainer-requested release blocker.
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.