Skip to content

fix(commandboard): add body size limit and handle JSON parse errors (fixes #61)#62

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
FuturMix:fix/commandboard-body-limit
Jun 14, 2026
Merged

fix(commandboard): add body size limit and handle JSON parse errors (fixes #61)#62
ralyodio merged 1 commit into
profullstack:masterfrom
FuturMix:fix/commandboard-body-limit

Conversation

@FuturMix

Copy link
Copy Markdown
Contributor

Adds a 1 MB body size limit to readJson() to prevent OOM denial-of-service, and wraps the readJson() calls in /dispatch and /quotes handlers with try/catch (matching the existing pattern in /tasks and /sh1pt).

Changes:

  • readJson(): track accumulated body size, throw if > 1 MB
  • /api/plugins/c0mpute/jobs/dispatch: wrap readJson() in try/catch
  • /api/plugins/c0mpute/quotes: wrap readJson() in try/catch

Fixes #61

@ralyodio ralyodio merged commit 9d2c485 into profullstack:master Jun 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CommandBoard API readJson has no body size limit and unhandled exception on dispatch

2 participants