mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2174] [Issue]: Native persona import keeps embedded avatars inline #1081
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#1081
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?
Originally created by @Promansis on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2174
Originally assigned to: @Promansis on GitHub.
Summary
Native Marinara persona import restores persona avatar data by copying the exported
data:image/...string directly into the persona record'savatarPath/avatarfields instead of materializing a managed avatar file. Legacy imported the same native persona avatar through validated image bytes and stored a managed avatar path.Expected behavior
Importing a native
marinara_personaexport with embedded avatar data should create a managed persona avatar file, store the managed asset URL/metadata on the persona row, and roll back that file if the import fails after creation.Actual behavior
import_marinara_personaremoves reserved fields, builds the persona row, then inserts the exportedavatarstring directly intoavatarPathandavatar. No managed avatar file is created for native persona imports, so this path bypasses the managed asset layout used by normal persona avatar upload and legacy native import.Steps to reproduce
refactorat7d4f39f4, inspectsrc-tauri/src/commands/storage/imports/marinara.rsaroundimport_marinara_persona.mainat77a30fa4,packages/server/src/services/import/marinara.importer.ts, whereimportPersonacallssaveAvatarFromDataUrland updates the persona avatar path after creating the row.Impact area
Environment
refactor7d4f39f4; legacy comparisonmain77a30fa4Logs, screenshots, or video
Static trace evidence:
src-tauri/src/commands/storage/imports/marinara.rs:400definesimport_marinara_persona;:406inserts exportedavatardirectly intoavatarPath/avatar;:416restores persona sprites only.src-tauri/src/commands/storage/imports/marinara_assets.rs:47has persona sprite restoration, but no matching persona avatar materialization helper.packages/server/src/services/import/marinara.importer.ts:47saveAvatarFromDataUrl;:334imports persona avatar data;:336updates the persona avatar path.Focused check run during parityscan:
cargo test --manifest-path src-tauri/Cargo.toml personapassed 16 tests, but it does not include a native persona import/export avatar round-trip.Regression notes
This is a parity gap against legacy native persona import. Legacy wrote embedded native persona avatars into managed avatar storage; refactor keeps the embedded data URL inline on the row.
Additional context
Found while refreshing issue #2133 row
06-PER-COMPAT-native-import-avatar-sprites.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: