You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/09/04 05:39:49 UTC
[PR] fix(ai): guard null tool input in topic list handler [rocketmq-dashboard]
yyqdbngt opened a new pull request, #3122:
URL: https://github.com/apache/rocketmq-dashboard/pull/3122
### Summary
Guard and cover the AI topic-list tool handler:
- `TopicListToolHandler.execute` rejects a null input map with a clear 400 (`tool input is required`) instead of NPE-ing on `input.get(...)`.
- New `TopicListToolHandlerTest` (first coverage) verifies the null guard and the filter/projection path through the metadata service.
### Why
Tool handlers run on LLM-produced inputs and had no automated coverage; a null/missing input previously produced an opaque NPE inside the tool gateway.
### Testing
- `mvn -f server/pom.xml -Dtest=TopicListToolHandlerTest test` passes: 2/2.
--
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(ai): guard null tool input in topic list handler [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3122: fix(ai): guard null tool input in topic list handler
URL: https://github.com/apache/rocketmq-dashboard/pull/3122
--
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