You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "Aias00 (via GitHub)" <gi...@apache.org> on 2026/08/02 12:10:05 UTC

[I] [BUG] ApiBean.copy() back-references the original ApiBean, losing processor-applied beanPath [shenyu]

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: notifications-unsubscribe@shenyu.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] ApiBean.copy() back-references the original ApiBean, losing processor-applied beanPath [shenyu]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6553:
URL: https://github.com/apache/shenyu/issues/6553#issuecomment-5157753324

   👋 Hello @yuluo-yx
   
   A new issue has been opened by @Aias00:
   - **Title**: [BUG] ApiBean.copy() back-references the original ApiBean, losing processor-applied beanPath
   - **Link**: https://github.com/apache/shenyu/issues/6553
   
   Please review when you have time. Thank you! 🙏


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


Re: [I] [BUG] ApiBean.copy() back-references the original ApiBean, losing processor-applied beanPath [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 closed issue #6553: [BUG] ApiBean.copy() back-references the original ApiBean, losing processor-applied beanPath
URL: https://github.com/apache/shenyu/issues/6553


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