Aias00 opened a new issue, #6536:
URL: https://github.com/apache/shenyu/issues/6536

   ## Description
   In the `@EnableClientRegister` path, 
`BaseAnnotationApiProcessor.process(ApiBean)` gates the annotation-specific 
`process(apiBean, annotation)` behind `if (match(apiBean) && 
Objects.nonNull(annotation))`. But `BaseAnnotationApiProcessor.match(ApiBean)` 
(and `match(ApiDefinition)`) default to returning `false`, and none of the 
register processors (`ShenyuSpringMvcClientProcessorImpl`, 
`ApiDocProcessorImpl`, `ShenyuDubboProcessor`) override `match`. Therefore 
`false && ...` is always false and `process(.., annotation)` is never invoked. 
The generic `MateDataApiRegistrarImpl`/`ApiDocRegistrarImpl` rely entirely on 
these processors to apply annotation properties.
   
   ## Location
   ```
   
shenyu-client/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/register/matcher/BaseAnnotationApiProcessor.java:32-43
 (process), 46-48/56-58 (match defaults false)
   
shenyu-client-http/shenyu-client-springmvc/.../ShenyuSpringMvcClientProcessorImpl.java:33
   shenyu-client-core/.../register/matcher/ApiDocProcessorImpl.java:33
   
shenyu-client-dubbo/shenyu-client-apache-dubbo/.../ShenyuDubboProcessor.java:28
   ```
   
   ## Impact
   `enabled=false` endpoints are still registered as **enabled** (disabled APIs 
get exposed through the gateway); `registerMetaData=false` still registers 
metadata; `path` overrides and `desc`/`ruleName`/`tags` are dropped.
   
   ## Suggested fix
   Make `BaseAnnotationApiProcessor.match` default to `true`, or remove the 
`match()` gate and fall back to the interface default (`if 
(nonNull(annotation))`).
   
   ## Related existing issue(s)
   None
   
   _Identified during the 2026-08-02 audit; full list in 
[`docs/issue-candidates-2026-08-02.md`](docs/issue-candidates-2026-08-02.md)._


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