Form files: a dropped, stalled or endless upload is aborted and frees its slot, attempt key and buffers

Security review of 1.16.0 (blocking): a request body that errored mid-file never
resolved, leaking the concurrency slot and the attempt key. Also: idle and request
timeouts (submit.idleTimeoutMs / timeoutMs), ImmutableId preference on every Graph
draft call, the remaining total in the too-large message, files sent to a form
without a File field are refused and logged.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-13 17:02:10 +01:00
co-authored by Claude Fable 5.2
parent cd74d7decb
commit e24c918d4b
13 changed files with 311 additions and 30 deletions
+3 -1
View File
@@ -411,7 +411,9 @@ Files on forms are e-mailed, not stored — **no volume and no bucket** for them
- **Time.** The request stays open while the file uploads and the e-mail is sent. On a slow connection a 10 MB
upload can take over a minute — check the proxy's read timeout (Traefik: `respondingTimeouts.readTimeout` of the
entry point) if visitors on mobile networks report failures. Not measured by the plugin's tests; verify once on
the real server with a throttled upload.
the real server with a throttled upload. The plugin itself gives an upload up after 30 s without a byte and
after 5 minutes in total (`attachments.submit.idleTimeoutMs` / `timeoutMs`), so a dropped connection never
holds a slot.
- **Memory.** A file is held in memory while it is checked and sent (about 2.4 × its size); at most two file
submissions run at once per instance (`attachments.maxConcurrent`).
- **Mail.** Send the test e-mail with the 10 MB file after every change of mail provider