Skip to content

[BUG] the path truncation of get requests set by shenyuContext in MCP Server #6207

@MaMengzhen

Description

@MaMengzhen

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

There is an issue with the path truncation of get requests set by shenyuContext in MCP Server.

Image When setting the path for shenyuContext, if it is a get request and the path contains parameter information, it will cause the MCP server to fail the request when calling.

Expected Behavior

When setting the path for shenyuContext, if it is a get request, the parameter information in the path should be truncated and only the path information should be retained.

Steps To Reproduce

  1. Obtain the decorated request path and retrieve the native path information from the decorated path.
  2. Then execute shenyuContext.setPath.

Environment

ShenYu version(s):2.7.0.3-SNAPSHOT

Debug logs

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions