The GitHub Actions job "CI" on rocketmq-dashboard.git/fix/dlq-excel-cell-limit 
has failed.
Run started by GitHub user unbridled-41 (triggered by unbridled-41).

Head commit for run:
d0885d129911961504be7634f84532e54a45289d / unbridled-41 
<[email protected]>
fix(dlq): truncate oversized message bodies in the Excel export

EasyExcel delegates string cells to POI, which rejects any cell text longer
than 32767 characters. DLQMessageExcelRow.from copied the full decoded
message body into the Body cell, so one dead-letter message with a large
text body made the whole export throw and the endpoint returned a 502 for
the entire group instead of a workbook:

  BusinessException: Failed to export DLQ messages as Excel:
  The maximum length of cell contents (text) is 32767 characters

Clamp the body to the cell limit with a truncation marker, backing off onto
a code-point boundary so the cut never splits a surrogate pair into an
unpaired half. Other cells are untouched.

Tested: 
RocketMQDLQProviderTest#exportExcelTruncatesOversizedBodiesInsteadOfFailingTheWholeExport
(errors with the 502 before the fix, passes after; asserts the oversized
row is clamped and that the following row still exports intact),
the whole RocketMQDLQProviderTest (46) and the dlq package (44) pass,
checkstyle clean.

Report URL: 
https://github.com/apache/rocketmq-dashboard/actions/runs/37086951812

With regards,
GitHub Actions via GitBox

Reply via email to