charle-z opened a new pull request, #7576:
URL: https://github.com/apache/shenyu/pull/7576

   ## Problem
   MCP URL-valued query, body, nested-body or header arguments could be 
mistaken for a complete request target, silently replacing the fixed tool 
endpoint and its routing context.
   
   ## Fix
   - Permit complete target URL selection only when a tool explicitly maps an 
argument to the `target` position.
   - Preserve normal query/body/header/path placement for URL-valued data; 
leave configured `requestTemplate.url` intact.
   - Add helper and callback regressions covering URL-valued data, routing 
context, an unmapped URL, and explicitly configured complete URL selection.
   
   ## Validation
   - `RequestConfigHelperTest`: 23 passed.
   - `ShenyuToolCallbackTest`: 20 passed.
   - Maven reactor (11 modules): BUILD SUCCESS (43 tests total, 0 
failures/errors).
   - `checkstyle:check`: BUILD SUCCESS, 0 violations.
   - `git diff --check`: clean.
   
   Fixes #7453


-- 
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]

Reply via email to