Skip to content

Return 400 for Rack parameter parsing errors - #516

Merged
geemus merged 1 commit into
masterfrom
fix/rack-parameter-errors
Nov 21, 2026
Merged

geemus merged 1 commit into
masterfrom
fix/rack-parameter-errors

Conversation

@ydah

@ydah ydah commented Nov 20, 2026

Copy link
Copy Markdown
Member

Malformed query strings and form bodies such as limit=1&limit[a]=2 and limit=% escape as Rack parser exceptions.

Convert these failures to Committee::BadRequest at the parsing boundary so the existing 400 response and error_handler, raise, and ignore_error options apply. Preserve the original form body for the downstream app when errors are ignored.

@geemus geemus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks

@geemus
geemus merged commit 0a8abd9 into master Nov 21, 2026
11 checks passed
@geemus
geemus deleted the fix/rack-parameter-errors branch November 21, 2026 16:41
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.

2 participants