RockteMQ-AI commented on issue #1968: URL: https://github.com/apache/rocketmq-dashboard/issues/1968#issuecomment-5262509554
**Issue Evaluation** Category: `bug` | Status: **Confirmed** The reported issue has been verified against the resource plan parser implementation. **Root Cause:** The resource plan parser only validates that `consumerGroups` is an array but does not validate the shape of each consumer group's `subscribedTopics` field. When `subscribedTopics` is a string or contains non-string values, the preview either produces an actionable CREATE entry for malformed data or crashes in `sortedTopics` when comparing against existing groups. **Impact:** Malformed resource bundles can either create invalid consumer group configurations or cause the preview to fail with unhelpful runtime exceptions. **Severity:** Medium — input validation gap that can lead to incorrect resource planning **Proposed Fix Assessment:** The proposed fix is appropriate: - Add runtime validation that `subscribedTopics` must be an array of strings - Report malformed entries as INVALID and non-applicable - Cover both new and existing consumer group paths - Add regression tests An automated fix proposal can be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by github-manager-bot* -- 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]
