Skip to content

[Studio] fix: handle invalid request parameter types - #587

Open
yx9o wants to merge 1 commit into
apache:rocketmq-studiofrom
yx9o:dev-586
Open

[Studio] fix: handle invalid request parameter types#587
yx9o wants to merge 1 commit into
apache:rocketmq-studiofrom
yx9o:dev-586

Conversation

@yx9o

@yx9o yx9o commented Jul 25, 2026

Copy link
Copy Markdown

What is the purpose of the change

Fixes #586 .

Request parameters that could not be converted to their declared types were handled as unexpected exceptions and returned HTTP 500. This change treats these conversion failures as client errors and returns a structured HTTP 400 response.

Brief changelog

  • Handle request parameter type mismatches as HTTP 400.
  • Return the invalid parameter name in the standard error response.
  • Add regression coverage for invalid and valid typed request parameters.

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.

1 participant