mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1960] [Issue]: Native Marinara character import stores avatar data inline #963
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#963
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 @Xelvanis on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1960
Originally assigned to: @cha1latte on GitHub.
Summary
Native
.marinaracharacter imports put embedded avatar data directly intoavatarPathas adata:image/...string. Legacy native import wrote embedded avatars to managed avatar storage, and current ST/CharX import in refactor also writes managed avatar metadata.Expected behavior
Importing a native Marinara character export with an embedded avatar should materialize the avatar under managed character avatar storage and set
avatarPath,avatarFilePath, andavatarFilenameconsistently with other character avatar imports.Actual behavior
src-tauri/src/commands/storage/imports/marinara.rssetsavatarPathfromdata_image_string(data.get("avatar")), leaving inline image data in the character row instead of managed avatar file metadata.Steps to reproduce
.marinaracharacter export that contains an embedded avatar.avatarPathcontaining adata:image/...value instead of managed avatar path metadata.Impact area
Environment
refactorat7801a73aLogs, screenshots, or video
No runtime log captured. Static evidence is the native import path writing inline data, while the current ST/CharX import path writes managed avatar metadata.
Regression notes
Legacy
packages/server/src/services/import/marinara.importer.tssaved embedded avatar data withsaveAvatarFromDataUrl(...)and then calledstorage.updateAvatar(...)for the created character.Additional context
Found during target 5 Characters parityscan for #1904. Related visible thumbnail fallout is tracked in #1944; this issue tracks the native import storage root cause.
Suggested fix: when native character import sees
data.avatarwith adata:image/...URL, decode and persist it through the same managed avatar helper used by ST/CharX import. Roll back the saved file if the character import fails.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: