RockteMQ-AI commented on issue #2117: URL: https://github.com/apache/rocketmq-dashboard/issues/2117#issuecomment-5281483666
**Issue Evaluation** Category: `bug` | Status: **Confirmed** The reported issue has been verified against the current codebase. **Root Cause:** `MessageService` checks a Topic query window with `endTime - startTime`. Extreme long values can overflow to a negative duration and bypass the seven-day limit. Negative and equal timestamps are also not rejected consistently at the provider-neutral boundary. **Impact:** Users can submit queries with invalid timestamp ranges that bypass validation, potentially causing unexpected behavior or excessive resource consumption. **Severity:** Medium — validation bypass but unlikely to cause data corruption. **Proposed Fix:** 1. Validate non-negative, strictly ordered timestamps 2. Compare the maximum window without overflowing (use `Duration` or check before subtraction) 3. Add boundary tests for edge cases 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]
