[GH-ISSUE #6091] [Issue]: Full-backup imports regress to a 2 GiB upload cap #3375

Closed
opened 2026-10-21 06:02:28 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Sep 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6091

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Full-backup ZIP imports are again capped at 2 GiB by the multipart upload limit, despite the existing streamed ZIP64 backup/restore support. The maintainer reports that many users have larger backups and requests removing this regression.

Expected behavior

Import Profile accepts full backups larger than 2 GiB using the existing streaming upload and restore path.

Actual behavior

The upload is limited to 2,147,483,648 bytes before the archive reader can inspect the backup. The route also declares the same aggregate request limit.

Steps to reproduce

  1. Download a full Marinara backup larger than 2 GiB.
  2. Open Settings -> Import -> Import Profile.
  3. Select the backup ZIP and attempt to import it.

Environment

  • Marinara Engine version: current staging; confirmed by source inspection.
  • Install type: not specified in the report.
  • OS + version: not specified in the report.
  • Browser or app shell: not specified in the report.

Logs, screenshots, or video

No additional logs supplied. In backup.routes.ts, readProfileImportRequest passes PROFILE_IMPORT_ARCHIVE_LIMIT_BYTES to multipart fileSize; the constant is 2 GiB.

Additional context

Regresses the full-backup import allowance established by #4982. SpicyMarinara / Codex is addressing this in #6082. The existing JSON and archive-entry validation remain applicable.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6091 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Full-backup ZIP imports are again capped at 2 GiB by the multipart upload limit, despite the existing streamed ZIP64 backup/restore support. The maintainer reports that many users have larger backups and requests removing this regression. ## Expected behavior Import Profile accepts full backups larger than 2 GiB using the existing streaming upload and restore path. ## Actual behavior The upload is limited to 2,147,483,648 bytes before the archive reader can inspect the backup. The route also declares the same aggregate request limit. ## Steps to reproduce 1. Download a full Marinara backup larger than 2 GiB. 2. Open Settings -> Import -> Import Profile. 3. Select the backup ZIP and attempt to import it. ## Environment - Marinara Engine version: current staging; confirmed by source inspection. - Install type: not specified in the report. - OS + version: not specified in the report. - Browser or app shell: not specified in the report. ## Logs, screenshots, or video No additional logs supplied. In `backup.routes.ts`, `readProfileImportRequest` passes `PROFILE_IMPORT_ARCHIVE_LIMIT_BYTES` to multipart `fileSize`; the constant is 2 GiB. ## Additional context Regresses the full-backup import allowance established by #4982. SpicyMarinara / Codex is addressing this in #6082. The existing JSON and archive-entry validation remain applicable. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:02:28 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

Fixed on staging by #6082. The 2 GiB aggregate backup upload cap is removed. Verified with an actual 2,147,484,143-byte HTTP upload, successful preview/import and byte-identical restored media; JSON, archive-entry and path/security validation remain in place.

<!-- gh-comment-id:5647403717 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): Fixed on staging by #6082. The 2 GiB aggregate backup upload cap is removed. Verified with an actual 2,147,484,143-byte HTTP upload, successful preview/import and byte-identical restored media; JSON, archive-entry and path/security validation remain in place.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3375
No description provided.