fix(orchestrator): makes the bodyParser limit configurable. (#2802) - #2837
Conversation
…eveloper#2802) * fix(orchestrator): makes the bodyParser limit configurable. A customer was having an issue where the workflows content length was over the 100kb limit. This adds a configurable value to make the content lenght larger fixes: https://redhat.atlassian.net/browse/RHDHSUPP-351 * squash: add changeset * squash: add changeset * squash: add the contentLengthLimit to the common config * squash: only add to the global * squash: add comment
Code Review by Qodo
1. Default body limit still 100kb
|
|
Review Summary by QodoMake orchestrator bodyParser content length limit configurable
WalkthroughsDescription• Makes bodyParser content length limit configurable via config • Adds orchestrator.contentLengthLimit configuration option • Defaults to 102400 bytes (100kb) to handle large workflow payloads • Prevents 413 errors for workflows exceeding default size limit Diagramflowchart LR
A["Config: contentLengthLimit"] -- "read from" --> B["router.ts"]
B -- "apply limit to" --> C["express.json middleware"]
C -- "controls request size" --> D["Workflow processing"]
File Changes1. workspaces/orchestrator/plugins/orchestrator-backend/src/service/router.ts
|
24eadd6
into
redhat-developer:orchestrator-1.8



manual cherry-pick of PR #2802
A customer was having an issue where the workflows content length was over the 100kb limit. This adds a configurable value to make the content lenght larger
fixes: https://redhat.atlassian.net/browse/RHDHSUPP-351
Hey, I just made a Pull Request!
✔️ Checklist