Aithosa commented on issue #4722:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4722#issuecomment-2674783036

   > > > 
`servicecomb.publicKey.accessControl.includePathPatterns和servicecomb.publicKey.accessControl.excludePathPatterns判断时用的path是从invocation.getOperationMeta().getOperationPath()里获取的。
 
/scb/management下的路径要想设置到excludePathPatterns中,如/health和/schema/contents两个都要放进去,而不能用共同的前缀/scb/management。`
   > > > 你的意思取到的路径是 `/health` ,而不是 `/scb/management/health`, 导致不好配置?
   > > 
   > > 
   > > 是的,如果用共同的前缀的话会方便很多(/scb/management/*),否则都要手动添加。 或者可以考虑增加schema维度的配置?
   > 
   > 如果这样的,应该算是bug了,你是否方便提交个修改?
   
   
提交修改到[servicecomb-java-chassis](https://github.com/apache/servicecomb-java-chassis)?
   可以🙋‍♂️,我刚好看到框架对baseurl有专门的处理逻辑
   ```java
   SwaggerUtils.getBasePath()
   
     /**
      * Only ones servers and contains only base path.
      */
     public static String getBasePath(OpenAPI swagger) {
       if (swagger.getServers() == null || swagger.getServers().size() == 0) {
         return null;
       }
       return swagger.getServers().get(0).getUrl();
     }
   ```
   server有多个也会只取第一个,处理下null的情况就好了


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