[GH-ISSUE #5624] Profile, character, and persona imports reupload or reject large valid archives #3114

Closed
opened 2026-10-21 05:59:44 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Profile imports upload and parse the selected profile twice: once for the confirmation preview and again for the real import. A single unsupported or corrupt asset also aborts the entire otherwise-valid profile restore. Fixed byte ceilings additionally block legitimate multi-gigabyte profiles and character/persona cards with large image galleries.

Expected behavior

The preview upload should be reused when the user confirms the import. Individual asset files that cannot be safely restored should be skipped with explicit warnings while valid profile tables and assets continue importing. Marinara should not impose arbitrary archive or media byte ceilings on profile, character-card, or persona imports; actual disk, memory, and platform resources remain the practical boundary.

Imported files must still pass path, media-content, integrity, archive-structure, and privileged-access checks. Profile executable content must remain quarantined rather than run during import.

Actual behavior

The Settings > Imports > Profile & Marinara flow sends the same file to /backup/import-profile for preview, discards the server-side upload, then uploads it again for import. During asset staging, ProfileImportAssetValidationError is promoted to a request-level failure, so one unsupported asset aborts every table and asset. Profile archives and character/persona packages also have fixed upload, archive, entry, total, or embedded-gallery byte ceilings.

Steps to reproduce

  1. Select a large Marinara profile ZIP under Settings > Imports > Profile & Marinara.
  2. Observe the archive upload/scan complete, confirm the preview, and observe the same archive upload again.
  3. Include one unsupported asset such as game-assets/sprites/.native with invalid contents and observe the whole import fail with Profile asset ... is not a supported image file.
  4. Import a character or persona with a large embedded image gallery and observe it fail at the applicable fixed byte ceiling.

Environment

  • Marinara Engine version: 2.4.4 staging
  • Install type: not provided
  • OS + version: not provided
  • Browser or app shell: not provided

Logs, screenshots, or video

Profile asset game-assets/sprites/.native is not a supported image file.

The reported profile is approximately 2 GB and each attempt takes about two hours over a poor Wi-Fi connection. Profiles around 10 GB must remain supported without an application-level size ceiling.

Additional context

@SpicyMarinara owns the implementation.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5624 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Profile imports upload and parse the selected profile twice: once for the confirmation preview and again for the real import. A single unsupported or corrupt asset also aborts the entire otherwise-valid profile restore. Fixed byte ceilings additionally block legitimate multi-gigabyte profiles and character/persona cards with large image galleries. ## Expected behavior The preview upload should be reused when the user confirms the import. Individual asset files that cannot be safely restored should be skipped with explicit warnings while valid profile tables and assets continue importing. Marinara should not impose arbitrary archive or media byte ceilings on profile, character-card, or persona imports; actual disk, memory, and platform resources remain the practical boundary. Imported files must still pass path, media-content, integrity, archive-structure, and privileged-access checks. Profile executable content must remain quarantined rather than run during import. ## Actual behavior The Settings > Imports > Profile & Marinara flow sends the same file to `/backup/import-profile` for preview, discards the server-side upload, then uploads it again for import. During asset staging, `ProfileImportAssetValidationError` is promoted to a request-level failure, so one unsupported asset aborts every table and asset. Profile archives and character/persona packages also have fixed upload, archive, entry, total, or embedded-gallery byte ceilings. ## Steps to reproduce 1. Select a large Marinara profile ZIP under Settings > Imports > Profile & Marinara. 2. Observe the archive upload/scan complete, confirm the preview, and observe the same archive upload again. 3. Include one unsupported asset such as `game-assets/sprites/.native` with invalid contents and observe the whole import fail with `Profile asset ... is not a supported image file.` 4. Import a character or persona with a large embedded image gallery and observe it fail at the applicable fixed byte ceiling. ## Environment - Marinara Engine version: 2.4.4 staging - Install type: not provided - OS + version: not provided - Browser or app shell: not provided ## Logs, screenshots, or video `Profile asset game-assets/sprites/.native is not a supported image file.` The reported profile is approximately 2 GB and each attempt takes about two hours over a poor Wi-Fi connection. Profiles around 10 GB must remain supported without an application-level size ceiling. ## Additional context @SpicyMarinara owns the implementation. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:59:44 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 29, 2026):

THIS DOES NOT COUNT, HUSBAND IS WORKING ON IT, NOT ME, I AM ON HOLIDAYS, TRUST.

<!-- gh-comment-id:5461254277 --> @SpicyMarinara commented on GitHub (Aug 29, 2026): THIS DOES NOT COUNT, HUSBAND IS WORKING ON IT, NOT ME, I AM ON HOLIDAYS, TRUST.
Author
Owner

@SpicyMarinara commented on GitHub (Aug 29, 2026):

Resolved on staging by #5625 (merge commit ce5fd8b87). Profile confirmation now reuses the preview upload, invalid individual assets are skipped with warnings, and profile/character/persona gallery imports no longer use Marinara byte ceilings.

<!-- gh-comment-id:5461594984 --> @SpicyMarinara commented on GitHub (Aug 29, 2026): Resolved on `staging` by #5625 (merge commit `ce5fd8b87`). Profile confirmation now reuses the preview upload, invalid individual assets are skipped with warnings, and profile/character/persona gallery imports no longer use Marinara byte ceilings.
Author
Owner

@SpicyMarinara commented on GitHub (Aug 29, 2026):

Reopening for an incomplete edge case found during verification: the staged upload currently expires 30 minutes after preview, which can force the same multi-gigabyte archive to be uploaded again. SpicyMarinara/Codex is correcting this so the staged input lives until import, explicit cancellation, or server shutdown.

<!-- gh-comment-id:5461673735 --> @SpicyMarinara commented on GitHub (Aug 29, 2026): Reopening for an incomplete edge case found during verification: the staged upload currently expires 30 minutes after preview, which can force the same multi-gigabyte archive to be uploaded again. SpicyMarinara/Codex is correcting this so the staged input lives until import, explicit cancellation, or server shutdown.
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#3114
No description provided.