mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2069] [Issue]: hostable remote runtime lacks explicit legacy API body limits #1015
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#1015
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 @Promansis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2069
Originally assigned to: @cha1latte on GitHub.
Summary
The hostable Rust Remote Runtime does not visibly preserve the legacy server's explicit API request body/upload size policy.
Expected behavior
Hostable Remote Runtime API paths should have an intentional body/upload size policy comparable to legacy server behavior:
Actual behavior
Target 3 parityscan found no explicit hostable Rust body/upload limit policy matching the legacy 256 MiB app-owned server limit. Axum's JSON extractor has a dependency default body limit of 2,097,152 bytes, but this is not the legacy app policy and was not found documented as an intentional replacement.
Legacy evidence:
packages/server/src/app.tssetMAX_UPLOAD_BYTES = 256 * 1024 * 1024.bodyLimit: MAX_UPLOAD_BYTES.fileSize: MAX_UPLOAD_BYTES.Refactor evidence:
src-tauri/src/http_server.rsmaps/api/invokeand dedicated JSON routes but this scan found no explicit body-size limit layer or per-route body limit there.src-tauri/Cargo.tomlenablestower-httpwithcorsonly; notower_http::limit::RequestBodyLimitLayerusage was found.Steps to reproduce
main, which had an explicit 256 MiB server-level body/upload limit plus route-specific handling.Impact area
Environment
refactor/ Target 3 rescan on 2026-06-04; refactor trace at9bcfb164; legacymaintrace at77a30fa4Logs, screenshots, or video
No live oversized-body repro attached. This is static parity evidence from Target 3.
Focused adjacent proof run:
Result: passed, 11 tests. This does not prove body/upload limit behavior.
Regression notes
Legacy
mainhad an explicit app-owned API body/upload limit. Refactor may be implicitly limited by Axum defaults or deployment layers, but no intentional legacy-equivalent runtime policy was found.Additional context
Split from Target 3 PERF/body/cache parity row:
Acceptance criteria:
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: