RockteMQ-AI commented on issue #1418: URL: https://github.com/apache/rocketmq-clients/issues/1418#issuecomment-6306995026
**Issue Evaluation** Category: `type/bug` | Status: **Confirmed** The reported issue has been verified against the current codebase. **Root Cause:** `MessageBuilder::lite_message_builder` and `set_lite_topic` in `rust/src/model/message.rs` accept any string without validating that the lite topic is non-blank. This allows empty or whitespace-only topics to be set, which should be rejected. **Impact:** Invalid lite topic values can be set, leading to potential runtime errors or unexpected behavior when the lite subscription manager processes these topics. **Severity:** Medium — affects data validation and consistency with the Java client behavior. **Suggested Fix:** Add validation in `lite_message_builder` and `set_lite_topic` to reject blank (empty or whitespace-only) lite topics, matching the Java client's validation in `MessageBuilder.java`. An automated fix proposal will 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]
