Repository navigation
fix(feishu): reject empty send responses instead of reporting success - #4323
Merged
Merged
Conversation
jujn
approved these changes
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
FeishuOutboundClient.send()treats an HTTP 200 response with an empty body as a successful delivery.bodyToMono(String.class)completes empty when the response body is empty, so the downstreammap(this::checkSendResponse)is skipped entirely. The returnedMonocompletes without ever validating the Feishu response envelope:send()reports delivery success for a response that carries nocodeat all.sendWithReceipt()completes empty, so callers never obtain a receipt.The sibling
WeComOutboundClientalready guards this case with.defaultIfEmpty("").Fix
Add
.defaultIfEmpty("")before validation so an empty 200 body flows intocheckSendResponseand is rejected as a malformed response (code missing) instead of being silently reported as delivered.Test
FeishuOutboundClientTeststarts a localHttpServerthat returns an empty 200 body for the send endpoint. Before the fix,send()completes; after the fix it errors withIllegalStateException: code missing.Verification