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/04 02:55:43 UTC
[I] [BUG] IngressParser contextPathParse condition uses || instead of && — runs for dubbo/sofa ingresses [shenyu]
Aias00 opened a new issue, #6862:
URL: https://github.com/apache/shenyu/issues/6862
## Description
Line 75: `if (!dubboEnabled || !sofaEnabled)` calls `contextPathParse` whenever at least one of dubbo/sofa is disabled. Since dubbo and sofa are mutually exclusive (the if/else chain on lines 78–93 picks at most one), this condition is true for **every** ingress — including dubbo-only and sofa-only ingresses. The intent is `!dubboEnabled && !sofaEnabled` (run `contextPathParse` only when neither RPC plugin is enabled, i.e. for HTTP-based plugins). With `||`, `contextPathParse` runs for dubbo/sofa ingresses, adding a `ContextPathParser` `ShenyuMemoryConfig` alongside the `DubboIngressParser`/`SofaParser` one, creating duplicate context-path selectors.
## Location
- `shenyu-kubernetes-controller/src/main/java/org/apache/shenyu/k8s/parser/IngressParser.java:75`
## Impact
Dubbo/Sofa ingresses get spurious context-path-plugin selectors with null/`"null/**"` rule conditions (see M-11), polluting the selector cache and potentially causing routing ambiguity.
## Suggested fix
Change `||` to `&&`.
## Related existing
None — GOV-T6 (#6679) covers parser zero-tests; this is a logic operator defect.
--
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] IngressParser contextPathParse condition uses || instead of && — runs for dubbo/sofa ingresses [shenyu]
Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 commented on issue #6862:
URL: https://github.com/apache/shenyu/issues/6862#issuecomment-5930772986
Closing as fixed by #7036. `IngressParser` now enters the generic context-path flow only when no specialized ingress plugin is enabled, with regression coverage for the Dubbo path.
--
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] IngressParser contextPathParse condition uses || instead of && — runs for dubbo/sofa ingresses [shenyu]
Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 closed issue #6862: [BUG] IngressParser contextPathParse condition uses || instead of && — runs for dubbo/sofa ingresses
URL: https://github.com/apache/shenyu/issues/6862
--
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] IngressParser contextPathParse condition uses || instead of && — runs for dubbo/sofa ingresses [shenyu]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6862:
URL: https://github.com/apache/shenyu/issues/6862#issuecomment-5174069964
👋 Hello @yuluo-yx
A new issue has been opened by @Aias00:
- **Title**: [BUG] IngressParser contextPathParse condition uses || instead of && — runs for dubbo/sofa ingresses
- **Link**: https://github.com/apache/shenyu/issues/6862
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] IngressParser contextPathParse condition uses || instead of && — runs for dubbo/sofa ingresses [shenyu]
Posted by "yykaue (via GitHub)" <gi...@apache.org>.
yykaue commented on issue #6862:
URL: https://github.com/apache/shenyu/issues/6862#issuecomment-5580628316
/assign
--
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