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/03 00:51:31 UTC

[I] [BUG] New registrar path never propagates namespaceId — multi-namespace support broken in @EnableClientRegister path [shenyu]

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

   - Severity: High
   - Location:
   `shenyu-client/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/register/registrar/UriApiRegistrarImplImpl.java:44-52,57-65`; `MateDataApiRegistrarImpl.java:50-68,72-90`; `ApiDocRegistrarImpl.java:65-82`; `shenyu-client/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/register/ClientRegisterConfig.java:22-66` (interface lacks namespace accessor); `ClientRegisterConfigImpl.java:49-62` (has `ShenyuClientConfig` but never reads `getNamespace()`)
   - 
   Description:
   The old path (`AbstractContextRefreshedEventListener`) loops over all namespaces: `for (String namespaceId : namespaceIds)` and sets `.namespaceId(namespaceId)` on every DTO (`SpringMvcClientEventListener.buildURIRegisterDTO:159`, `ApacheDubboServiceBeanListener:127`, `handleClass:312`, `handleMethod:327`). The new registrar path publishes DTOs with no `.namespaceId(...)` call at all. `ClientRegisterConfig` has no namespace accessor, and `ClientRegisterConfigImpl` receives `ShenyuClientConfig` but never reads `getNamespace()`. `AbstractApiRegistrar.register` / `BaseApiRegistrarImpl.register` also do not loop over namespaces.
   - 
   Impact:
   When the ApiBean-based registrar path is active, all URI/MetaData/ApiDoc registrations carry null namespaceId, breaking multi-namespace support entirely; registrations land in the default namespace regardless of `shenyu.namespace` configuration. Compounds FUNC-B1 (when processors are fixed, namespace is still missing).
   - 
   Suggested fix:
   Add `List<String> getNamespace()` to `ClientRegisterConfig`; extract in `ClientRegisterConfigImpl` from `shenyuClientConfig.getNamespace()` (with the same default fallback the old path uses). Have `BaseApiRegistrarImpl.register` or the `doRegisterApi`/`doRegisterBean` methods loop over namespaces and set `.namespaceId(...)`.
   - 
   Confidence: High
   - Related existing: none — #6516 is admin-side namespace rewrite corruption; this is client-side namespace propagation omission.
   
   ---
   _Identified during the 2026-08-02 deep re-scan; full list in [`docs/scan2-2026-08-02/00-consolidated-critical-high.md`](docs/scan2-2026-08-02/00-consolidated-critical-high.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] New registrar path never propagates namespaceId — multi-namespace support broken in @EnableClientRegister path [shenyu]

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

   👋 Hello @yuluo-yx
   
   A new issue has been opened by @Aias00:
   - **Title**: [BUG] New registrar path never propagates namespaceId — multi-namespace support broken in @EnableClientRegister path
   - **Link**: https://github.com/apache/shenyu/issues/6664
   
   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] New registrar path never propagates namespaceId — multi-namespace support broken in @EnableClientRegister path [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 closed issue #6664: [BUG] New registrar path never propagates namespaceId — multi-namespace support broken in @EnableClientRegister path
URL: https://github.com/apache/shenyu/issues/6664


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