[GH-ISSUE #5469] [Issue]: Imported Universal Preset duplicates cannot be deleted #3033

Closed
opened 2026-10-21 05:59:01 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Importing backup data containing the protected Universal Preset creates duplicate presets that cannot be deleted. Repeated imports can create multiple undeletable copies.

Expected behavior

Imports should merge with or skip the existing Universal Preset, or any duplicate presets created by the import should be deletable.

Actual behavior

Each import creates another Universal Preset duplicate, and deletion is blocked because the preset's protected status persists.

Steps to reproduce

  1. Export backup data containing the Universal Preset from a Marinara Engine instance.
  2. Import the backup data into another Marinara Engine instance.
  3. Optionally import the same backup more than once.
  4. Attempt to delete the imported Universal Preset duplicates.
  5. Observe that the duplicates cannot be deleted.

Environment

  • Marinara Engine version: 2.4.3 (build 2.4.3+34442e26da57, commit 34442e26da)
  • Install type: Not provided
  • OS + version: Server: Linux 6.8.0-138-generic (x64); Client: Windows 10.0
  • Browser or app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36

Logs, screenshots, or video

No logs, screenshots, video, or Support Diagnostic were provided.

Additional context

A second user reproduced the issue after importing the same backup twice and ended up with three undeletable preset versions. A maintainer clarified that editing the default preset automatically creates a new preset, but confirmed that duplicate presets should be deletable. This affects backup restoration and migration between Marinara Engine instances.

Discord thread: Universal Preset Duplicate Issue
Discord thread link: https://discord.com/channels/1417099416812392641/1541290635066347651
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (6 messages)
[2026-08-24T03:38:43.195Z] Relium: Description:
Marinara's Universal Preset is protected (cannot be edited/deleted) but can be exported/imported via backup data. When imported into a new Marinara Engine instance, it creates a duplicate that also cannot be deleted.

Steps to Reproduce:
1. Export/backup the Universal Preset from the original Marinara Engine instance.
2. Import the backup data into a new Marinara Engine instance.
3. Attempt to delete the Universal Preset from the new instance.
4. Observe that deletion is blocked and a duplicate exists.

Expected Behavior:
Imported presets should either be merged with existing Universal Preset or be fully deletable.
Protected presets should not create duplicates when imported.

Actual Behavior:
Universal Preset creates an un-deletable duplicate in the new instance.
The duplicate protection mechanism persists across imports.

Debug Information:
Version: 2.4.3
Build: 2.4.3+34442e26da57
Commit: 34442e26da57
Server OS: Linux 6.8.0-138-generic (x64)
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36

Additional Context:
Affects preset management and backup/restore functionality.
Impacts users migrating between Marinara Engine instances.

Suggested Fix:
Add duplicate detection during preset import.
Provide option to merge or skip existing protected presets.
Ensure imported presets respect the original protection status appropriately.
[Discord message: https://discord.com/channels/1417099416812392641/1541290635066347651/1541290635066347651]

[2026-08-24T03:38:43.862Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1541290635066347651/1541290637863817226]

[2026-08-24T03:44:42.420Z] thatonecan: That's funny, I just ran into this same issue 5 minutes ago and came here to post a bug report
Since I made changes to the preset, I exported it as a backup, so I could import it into a second install of marinara, but accidentally imported it twice. Now I have 3 versions of the preset that can't be deleted
[Discord message: https://discord.com/channels/1417099416812392641/1541290635066347651/1541292141765074975]

[2026-08-24T05:09:09.821Z] Marinara: That’s because any changes made to the default preset automatically create a new one.
[Discord message: https://discord.com/channels/1417099416812392641/1541290635066347651/1541313395985350746]

[2026-08-24T05:09:19.587Z] Marinara: So you don’t need to export/import it.
[Discord message: https://discord.com/channels/1417099416812392641/1541290635066347651/1541313436947058728]

[2026-08-24T05:09:35.338Z] Marinara: But the duplicates should be able to be deleted.
[Discord message: https://discord.com/channels/1417099416812392641/1541290635066347651/1541313503011545139]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5469 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Importing backup data containing the protected Universal Preset creates duplicate presets that cannot be deleted. Repeated imports can create multiple undeletable copies. ## Expected behavior Imports should merge with or skip the existing Universal Preset, or any duplicate presets created by the import should be deletable. ## Actual behavior Each import creates another Universal Preset duplicate, and deletion is blocked because the preset's protected status persists. ## Steps to reproduce 1. Export backup data containing the Universal Preset from a Marinara Engine instance. 2. Import the backup data into another Marinara Engine instance. 3. Optionally import the same backup more than once. 4. Attempt to delete the imported Universal Preset duplicates. 5. Observe that the duplicates cannot be deleted. ## Environment - Marinara Engine version: 2.4.3 (build 2.4.3+34442e26da57, commit 34442e26da57) - Install type: Not provided - OS + version: Server: Linux 6.8.0-138-generic (x64); Client: Windows 10.0 - Browser or app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36 ## Logs, screenshots, or video No logs, screenshots, video, or Support Diagnostic were provided. ## Additional context A second user reproduced the issue after importing the same backup twice and ended up with three undeletable preset versions. A maintainer clarified that editing the default preset automatically creates a new preset, but confirmed that duplicate presets should be deletable. This affects backup restoration and migration between Marinara Engine instances. Discord thread: Universal Preset Duplicate Issue Discord thread link: https://discord.com/channels/1417099416812392641/1541290635066347651 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (6 messages)</summary> ```text [2026-08-24T03:38:43.195Z] Relium: Description: Marinara's Universal Preset is protected (cannot be edited/deleted) but can be exported/imported via backup data. When imported into a new Marinara Engine instance, it creates a duplicate that also cannot be deleted. Steps to Reproduce: 1. Export/backup the Universal Preset from the original Marinara Engine instance. 2. Import the backup data into a new Marinara Engine instance. 3. Attempt to delete the Universal Preset from the new instance. 4. Observe that deletion is blocked and a duplicate exists. Expected Behavior: Imported presets should either be merged with existing Universal Preset or be fully deletable. Protected presets should not create duplicates when imported. Actual Behavior: Universal Preset creates an un-deletable duplicate in the new instance. The duplicate protection mechanism persists across imports. Debug Information: Version: 2.4.3 Build: 2.4.3+34442e26da57 Commit: 34442e26da57 Server OS: Linux 6.8.0-138-generic (x64) Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36 Additional Context: Affects preset management and backup/restore functionality. Impacts users migrating between Marinara Engine instances. Suggested Fix: Add duplicate detection during preset import. Provide option to merge or skip existing protected presets. Ensure imported presets respect the original protection status appropriately. [Discord message: https://discord.com/channels/1417099416812392641/1541290635066347651/1541290635066347651] [2026-08-24T03:38:43.862Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1541290635066347651/1541290637863817226] [2026-08-24T03:44:42.420Z] thatonecan: That's funny, I just ran into this same issue 5 minutes ago and came here to post a bug report Since I made changes to the preset, I exported it as a backup, so I could import it into a second install of marinara, but accidentally imported it twice. Now I have 3 versions of the preset that can't be deleted [Discord message: https://discord.com/channels/1417099416812392641/1541290635066347651/1541292141765074975] [2026-08-24T05:09:09.821Z] Marinara: That’s because any changes made to the default preset automatically create a new one. [Discord message: https://discord.com/channels/1417099416812392641/1541290635066347651/1541313395985350746] [2026-08-24T05:09:19.587Z] Marinara: So you don’t need to export/import it. [Discord message: https://discord.com/channels/1417099416812392641/1541290635066347651/1541313436947058728] [2026-08-24T05:09:35.338Z] Marinara: But the duplicates should be able to be deleted. [Discord message: https://discord.com/channels/1417099416812392641/1541290635066347651/1541313503011545139] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:59:01 +07:00
Author
Owner

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

SpicyMarinara is addressing this in draft PR #5471. The implementation is intentionally scoped to the smallest root fix; validation and CodeRabbit review will complete before it lands on staging.

<!-- gh-comment-id:5391247253 --> @SpicyMarinara commented on GitHub (Aug 24, 2026): SpicyMarinara is addressing this in draft PR #5471. The implementation is intentionally scoped to the smallest root fix; validation and CodeRabbit review will complete before it lands on staging.
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#3033
No description provided.