You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "Aias00 (via GitHub)" <gi...@apache.org> on 2026/08/03 00:50:32 UTC
[I] [BUG] ShenyuMcpResponseDecorator completes future on first chunk (truncates multi-chunk bodies) [shenyu]
Aias00 opened a new issue, #6640:
URL: https://github.com/apache/shenyu/issues/6640
- severity: High
- files: `shenyu-plugin/shenyu-plugin-mcp-server/src/main/java/org/apache/shenyu/plugin/mcp/server/response/ShenyuMcpResponseDecorator.java:72-78`
- description: In `writeWith`, `doOnNext` appends each chunk to `body` and, if `!future.isDone()`, immediately completes `responseFuture` with `applyResponseTemplate(this.body.toString())` — i.e. with only the first chunk accumulated so far. Subsequent chunks append to `body` but the future is already done.
- impact: Tool-call results are truncated to the first chunk for any response delivered in more than one DataBuffer.
- suggested_fix: Complete the future only in `setComplete()` (or use `collectList()` then complete), not per-chunk.
- confidence: High
- related_existing: none
---
_Identified during the 2026-08-02 deep re-scan; full list in [`docs/scan2-2026-08-02/00-consolidated-critical-high.md`](docs/scan2-2026-08-02/00-consolidated-critical-high.md)._
--
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: notifications-unsubscribe@shenyu.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] ShenyuMcpResponseDecorator completes future on first chunk (truncates multi-chunk bodies) [shenyu]
Posted by "wy471x (via GitHub)" <gi...@apache.org>.
wy471x commented on issue #6640:
URL: https://github.com/apache/shenyu/issues/6640#issuecomment-5389038740
/assign
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] ShenyuMcpResponseDecorator completes future on first chunk (truncates multi-chunk bodies) [shenyu]
Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 closed issue #6640: [BUG] ShenyuMcpResponseDecorator completes future on first chunk (truncates multi-chunk bodies)
URL: https://github.com/apache/shenyu/issues/6640
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] ShenyuMcpResponseDecorator completes future on first chunk (truncates multi-chunk bodies) [shenyu]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6640:
URL: https://github.com/apache/shenyu/issues/6640#issuecomment-5161209418
👋 Hello @yuluo-yx
A new issue has been opened by @Aias00:
- **Title**: [BUG] ShenyuMcpResponseDecorator completes future on first chunk (truncates multi-chunk bodies)
- **Link**: https://github.com/apache/shenyu/issues/6640
Please review when you have time. Thank you! 🙏
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org