ChiangHaosion commented on PR #18741:
URL:
https://github.com/apache/dolphinscheduler/pull/18741#issuecomment-6460002477
@SbloodyS Thanks for the review.
Addressed in 352df18: `setMsgInRequestBody` no longer returns early on a
null message. It now checks whether the body template actually needs the
placeholder and fails explicitly with `alert content is null, can not replace
${msg} in the body params` before any request is sent,while a static body
without `${msg}` is still delivered unchanged when the content is null.
Covered by two regression tests:
- `testHttpSenderPostWithNullMsgAndPlaceholder` — `send(null)` throws
and `server.getRequestCount() == 0`.
- `testHttpSenderPostWithNullMsgAndStaticBody` — a placeholder-free body
is still sent unchanged.
--
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]