FaisalMisbah23 opened a new pull request, #394: URL: https://github.com/apache/rocketmq-dashboard/pull/394
Fixes #393 ## What is the purpose of the change This PR fixes multiple issues with Dead Letter Queue (DLQ) message functionality in the RocketMQ Dashboard as reported in issue #393: 1. DLQ messages not visible when searching by consumer group 2. Message Detail view failing with "Failed to query message by Id: undefined" 3. Resend Message hanging/failing 4. Export functionality producing empty Excel files or throwing exceptions ## Brief changelog **Backend:** - `DlqMessageServiceImpl.java`: Implemented DLQ-specific querying using `DefaultMQPullConsumer`, fixed resend to use `DefaultMQProducer`, added system property filtering, fixed pagination total count - `DlqMessageController.java`: Added `/resendDlqMessage.do` endpoint, improved error handling - `MessageController.java`: Fixed `viewMessage` to return `MessageView` directly - `DlqMessageExcelModel.java`: Added null safety checks - `pom.xml`: Upgraded EasyExcel to 3.3.4 for Java 17 compatibility **Frontend:** - `dlqmessage.jsx`: Fixed message detail modal, resend, export, pagination; added BornHost/BornTimestamp fields - `DlqMessageDetailViewDialog.jsx`: Added BornHost and BornTimestamp display - `remoteApi.js`: Fixed API parameter passing and response handling ## Verifying this change All functionality manually tested: - Query DLQ messages by consumer group (messages appear correctly) - View message details (modal opens, all fields display, no undefined errors) - Single and batch resend (works correctly, shows success notifications) - ingle and batch export (Excel files download with correct data) - Pagination (correct total count display, page navigation works) - Date range filtering (only messages in range are displayed) Testing environment: RocketMQ Dashboard 2.1.1-SNAPSHOT, RocketMQ 5.3.4, Java 17, Linux -- 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]
