mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1690] [MERGED] Reject non-image ST background imports #5216
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#5216
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1690
Author: @cha1latte
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte
Base:
refactor← Head:bughunt/refactor-lane6-storage-20260531📝 Commits (1)
9de7da2Reject non-image ST background imports📊 Changes
1 file changed (+75 additions, -1 deletions)
View changed files
📝
src-tauri/src/commands/storage/imports/bulk_imports.rs(+75 -1)📄 Description
Linked issue
N/A - multi-agent refactor bug-hunt lane 6.
Why this change
import_st_bulk_runcould still accept a crafted or stale selected background ID for a non-image file and copy it into managed background storage.What changed
.pngpositive row and a.txtshould-not-match negative control.Refactor impact
Primary owner:
Rust storage/imports.
Impact areas reviewed:
Boundary notes:
src-tauristorage/import code.Pressure points touched:
src-tauri/src/commands/storage/imports/bulk_imports.rsValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
node scratch\lane6-storage-bulk-background-repro.mjsscratch/lane6-storage-bulk-background/before-proof.json.pngimported and crafted/stale.txtselected ID also copied into managed backgrounds.node scratch\lane6-storage-bulk-background-repro.mjs --afterscratch/lane6-storage-bulk-background/after-proof.json.pngimported,.txtreturnedBackground import only supports image files, and no managed.txtfile was created.cargo test --manifest-path src-tauri/Cargo.toml run_st_bulk_import_rejects_unscanned_non_image_background_selection --workspacecargo check --manifest-path src-tauri/Cargo.toml --workspacepnpm checknode C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonDocs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or release files changed.
UI evidence
N/A - non-UI storage/import bug. Raw hostable-runtime proof output is saved under
scratch/lane6-storage-bulk-background/before-proof.jsonandscratch/lane6-storage-bulk-background/after-proof.json.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.