Aias00 opened a new issue, #905:
URL: https://github.com/apache/rocketmq-dashboard/issues/905
### What happened?
`RocketMQClientProvider.findProducerConnections` handles a null `TopicList`
response, but not a non-null response whose `topicList` field is null:
```java
topics = topicList == null ? Set.of() : topicList.getTopicList();
...
for (String topic : topics) { ... }
```
If the RocketMQ admin API returns an incomplete `TopicList` body, the
producer connection scan throws `NullPointerException` before it can return an
empty result. That can break the Studio client connection list instead of
degrading cleanly.
### Location
-
`server/src/main/java/org/apache/rocketmq/studio/rocketmq/RocketMQClientProvider.java`
### Expected behavior
The provider should treat a null topic set the same as an empty topic set
and return an empty producer connection list.
### Scope
This is in the RocketMQ Studio CLIENT-01 path for Remoting client connection
discovery.
### Suggested fix
Guard `topicList.getTopicList()` before iterating and add a provider unit
test for the null body case.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]