mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4344] [Issue]: Profile import fails on fresh install when Noodle handles already exist #2357
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#2357
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 (Jul 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4344
Originally assigned to: @Gunterlie on GitHub.
Summary
Importing a native Marinara profile into a fresh install can fail when the destination has already initialized a Noodle account whose handle matches an account in the profile snapshot. The import exposes the internal error
[file-storage] Unique value already exists for noodle_accounts.handleinstead of reconciling the same logical account or reporting the collision during preview.Expected behavior
A profile exported from another Marinara installation should import into a fresh installation even if normal startup or opening Noodle has already created local Noodle account rows.
The importer should reconcile accounts representing the same logical identity and preserve/remap their dependent references. A genuine same-handle/different-account conflict should be resolved deterministically or reported during preview with a user-facing explanation.
Actual behavior
The import fails with:
The UI reports
Profile import failed, and the profile is not restored.Steps to reproduce
noodle_accounts.handleuniqueness error.Environment
origin/stagingata46683580875a198a5836ae6fadd0488072fb47dLogs, screenshots, or video
Reporter-provided UI error:
A screenshot was provided in the support conversation, but no uploadable attachment URL is available for this issue.
Additional context
Source inspection on current
stagingshows the collision path:noodle_accounts.handleis unique for public Noodle accounts.upsertAccountFromProfile().The import is transactional, so the observed failure should roll back database changes and staged assets. The missing behavior is identity reconciliation before applying the snapshot.
This is distinct from:
app_settingsprimary-key conflict.A robust fix should reconcile imported Noodle accounts by stable logical identity such as platform, kind, and entity ID, then remap account-ID references in dependent Noodle tables. Genuine cross-identity handle conflicts should be handled separately rather than leaking the storage-layer exception.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: