You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] AbstractNodeDataChangedListener.onSelectorChanged builds config-key prefix with raw getNamespaceId() (no SYS_DEFAULT fallback) — selectors invisible when namespaceId null #6876
Each plugin's doExecute calls CACHED_HANDLE.get().obtainHandle(key) and immediately dereferences the result without a null check. CommonHandleCache.obtainHandle(key) returns cached.get(key) which is null on cache miss. The cache miss occurs when a rule is created with a null/empty handle field — every data handler guards the cache write with Optional.ofNullable(ruleData.getHandle()).ifPresent(...), so a rule with no handle JSON is never cached but CAN still be matched by AbstractShenyuPlugin.execute (matching is condition-based, not handle-based).
Every request matching a rule that was created without a handle (or whose handle was cleared) receives an unhandled NullPointerException / 500. A single misconfigured rule takes down all traffic matching it.
Suggested fix
Add a null guard at the top of each doExecute, e.g. if (Objects.isNull(handle)) { return chain.execute(exchange); }, mirroring the guard added in ContextPathPlugin and MockPlugin (line 52-54).
Related existing
Distinct from #6657 (GeneralContextPlugin NPE) — that issue was filed only for GeneralContextPlugin.java:54. These are four separate plugins with separate caches and separate doExecute implementations, all of which lack the guard that #6657 added for GeneralContextPlugin only.
Title: [BUG] AbstractNodeDataChangedListener.onSelectorChanged builds config-key prefix with raw getNamespaceId() (no SYS_DEFAULT fallback) — selectors invisible when namespaceId null
Activity
github-actions commentedon Aug 4, 2026
👋 Hello @yuluo-yx
A new issue has been opened by @Aias00:
Please review when you have time. Thank you! 🙏
zhang-arvin commentedon Aug 30, 2026
I will work on this.
[type: bug] Fix namespaceId null handling in AbstractNodeDataChangedL…
[type: bug] Fix namespaceId null handling in AbstractNodeDataChangedL…
[type: bug] Fix namespaceId null handling in AbstractNodeDataChangedL…
[type: bug] Fix namespaceId null handling in AbstractNodeDataChangedL…
[type: bug] Fix namespaceId null handling in AbstractNodeDataChangedL…
[type: bug] Fix namespaceId null handling in AbstractNodeDataChangedL…