You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2022/01/05 08:34:04 UTC

[GitHub] [incubator-shenyu] shenyuhao-github opened a new issue #2708: 【BUG】can not be used normally "shenyu.client.props.isFull" conifg

shenyuhao-github opened a new issue #2708:
URL: https://github.com/apache/incubator-shenyu/issues/2708


   ### Is there an existing issue for this?
   
   - [X] I have searched the existing issues
   
   ### Current Behavior
   
   _No response_
   
   ### Expected Behavior
   
   _No response_
   
   ### Steps To Reproduce
   
   1、download file from "https://github.com/apache/incubator-shenyu/releases/tag/v2.4.1"
   2、run ShenyuAdminBootstrap.java
   3、add configuration to the shenyu-bootstrap.module.pom:shenyu-spring-boot-starter-plugin-divide(2.4.1),shenyu-spring-boot-starter-plugin-httpclient(2.4.1)
   4、add configuration to my client-service.pom:shenyu-spring-boot-starter-client-springmvc(2.4.1)
   5、**set in the client-service.application.yml "shenyu.client.props.isFull=true"**
   6、run ShenyuBootstrapApplication.java; run my client-service;
   7、send get request "127.0.0.1:9195/login/isfull/test"(9195 is gateway address;“/login” is shenyu.client.props.contextPath)
   8、throw exception "the context path '/login/**' is invalid."
   ![image](https://user-images.githubusercontent.com/49275361/148184688-e55157a2-2915-4616-8f5e-6718d4b726d6.png)
   
   
   ### Environment
   
   ```markdown
   ShenYu version(s):2.4.1
   ```
   
   
   ### Debug logs
   
   ![image](https://user-images.githubusercontent.com/49275361/148181501-0db5a526-9a0f-4d6e-b39a-fef74549e9a4.png)
   1、when isFull=true, this.contextPath will be modified to "/login/**"
   ![image](https://user-images.githubusercontent.com/49275361/148181522-7c4a532f-f018-4156-b4c2-af882f888fa4.png)
   2、because contextMappingRuleHandle.getContextPath() = "/login/**",so "/login/isfull/test" never starts with "/login/**"
   
   ### Anything else?
   
   Temporary solution:
   ![image](https://user-images.githubusercontent.com/49275361/148184792-6d1d960e-bf13-4e5e-8062-ea238a81c1b5.png)
   Modify "/login/**" to "/login"


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



[GitHub] [incubator-shenyu] yu199195 closed issue #2708: 【BUG】"shenyu.client.props.isFull" conifg can not be used normally

Posted by GitBox <gi...@apache.org>.
yu199195 closed issue #2708:
URL: https://github.com/apache/incubator-shenyu/issues/2708


   


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