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

   ## Description
   The copied `ApiDefinition`s are constructed with `new ApiDefinition(this, 
...)` so each copy's `apiBean` field points back at the **original** `ApiBean`, 
not at `copy`. Registrars read the path via `api.getApiBean().getBeanPath()`, 
so a processor's `setBeanPath` on the copy is silently lost.
   
   ## Location
   ```
   shenyu-client-core/.../register/ApiBean.java:245-254
   MateDataApiRegistrarImpl.java:183-185, ApiDocRegistrarImpl.java:170-172
   ```
   
   ## Impact
   A class-level path override set on the copy (e.g. 
`@ShenyuSpringMvcClient(path="/foo")` with no class `@RequestMapping`) is 
dropped from the registered path.
   
   ## Suggested fix
   `new ApiDefinition(copy, definition.apiMethod, definition.methodPath)`.
   
   ## 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