You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "btlqql (via GitHub)" <gi...@apache.org> on 2026/08/16 11:55:37 UTC
[PR] fix(api): validate request DTOs at controller boundaries [rocketmq-dashboard]
btlqql opened a new pull request, #2264:
URL: https://github.com/apache/rocketmq-dashboard/pull/2264
## Problem
Instance creation, login, and AI endpoints accept empty required fields and pass malformed requests into service logic.
## Root cause
The request DTOs do not declare non-blank constraints, and the login and AI controller boundaries do not trigger Bean Validation.
## Changes
- require non-blank instance names, login credentials, AI commands, and chat messages
- enable `@Valid` processing on login, chat, and execute request bodies
- add controller regression tests proving invalid requests return HTTP 400 without invoking the service layer
This consolidates the related request-boundary fixes from closed PRs #2100, #2101, and #2102 into one cohesive PR, following the maintainer guidance in #2107.
## Impact
Clients receive a deterministic validation error at the HTTP boundary, and downstream services are protected from incomplete requests.
## Validation
- targeted controller suite: 27 tests passed
- full server suite excluding the two local external-CLI tests: 1196 tests passed
- Maven Checkstyle: 0 violations
- `git diff --check`
Closes #2075.
Closes #2076.
Closes #2077.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(api): validate request DTOs at controller boundaries [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on PR #2264:
URL: https://github.com/apache/rocketmq-dashboard/pull/2264#issuecomment-5338034750
Thanks for the change. We're closing this one per our contribution guideline (#2107): changes should be submitted as cohesive, focused PRs rather than scattered single-point patches, and part of this validation overlaps checks already present in the current codebase. Please feel free to resubmit the genuinely missing parts (e.g. AI chat/execute DTO validation) as a focused, cohesive PR. Thanks for understanding.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(api): validate request DTOs at controller boundaries [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #2264: fix(api): validate request DTOs at controller boundaries
URL: https://github.com/apache/rocketmq-dashboard/pull/2264
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org