478320 opened a new pull request, #6228: URL: https://github.com/apache/shenyu/pull/6228
<!-- Describe your PR here; e.g. Fixes #issueNo --> <!-- Thank you for proposing a pull request. This template will guide you through the essential steps necessary for a pull request. --> Make sure that: - [ ] You have read the [contribution guidelines](https://shenyu.apache.org/community/contributor-guide). - [ ] You submit test cases (unit or integration tests) that back your changes. - [ ] Your local test passed `./mvnw clean install -Dmaven.javadoc.skip=true`. The original logic of the MCP plugin directly passes the configured path as the RealUrl. This causes the RealUrl to not be the same as the one processed by the Context plugin after the prefix is removed. There are two scenarios: 1. If the MCP plugin includes the prefix during auto-registration, it will cause issues with the RealUrl. 2. If the prefix is not added during auto-registration, the Rule cannot be matched due to the context-path property configured in the Divide plugin. Therefore, I have modified the RealUrl generation logic in the MCP plugin by incorporating part of the capabilities of the Context plugin, so that it can remove the prefix from the RealUrl. -- 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]
