mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4789] [Issue]: Persona avatar updates can leave stale crop data or unsafe avatar files #2637
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#2637
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 (Aug 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4789
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Persona avatar assignment and removal do not consistently treat the database reference, crop data, and local avatar file as one lifecycle. Some replacement paths retain crop data from the previous image, failures after writing a new file can leave that file unattached, and Mari Images can delete a file that Persona version history still references.
Expected behavior
Actual behavior
avatarCropwhen the underlying Persona image changes.data/avatars.Steps to reproduce
data/avatarsand observe that affected paths can leave the new file unattached.Environment
stagingatdd7768975aa480367a86d7fe7a177c12a7382c68Logs, screenshots, or video
No UI evidence. The crop-reset path is visible through normal Persona avatar replacement. The write-failure and history-reference cases were identified through source tracing and targeted lifecycle probes.
Additional context
PR #4669 made Character and Persona deletion protect shared and historical avatar references. This is a follow-up for the remaining avatar assignment, import, replacement, and Mari Images clear paths.
The failure-window reproduction requires fault injection or a concurrent record disappearance; it is not expected during every ordinary avatar update.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: