Aias00 opened a new issue, #6772: URL: https://github.com/apache/shenyu/issues/6772
- severity: Medium - files: `shenyu-plugin/shenyu-plugin-redirect/.../RedirectPluginDataHandler.java:49`; `.../shenyu-plugin-rewrite/.../RewritePluginDataHandler.java:49`; `.../shenyu-plugin-param-mapping/.../ParamMappingPluginDataHandler.java:49`; `.../shenyu-plugin-modify-response/.../ModifyResponsePluginDataHandler.java:49`; `.../shenyu-plugin-context-path/.../ContextPathPluginDataHandler.java:63` - description: Five `removeRule` implementations guard removal with `Optional.ofNullable(ruleData.getHandle()).ifPresent(...)`. If `handle` is null when the rule is deleted (deletion event carries only rule ID, or rule was previously updated to null handle), the cache entry keyed by `selectorId_ruleId` is never removed. `RequestPluginHandler.removeRule` and `GeneralContextPluginDataHandler.removeRule` correctly guard on `ruleData` itself. - impact: Stale rule-handle objects accumulate in cache indefinitely (memory leak + potential stale config reuse). - suggested_fix: Guard on `Optional.ofNullable(ruleData)` and always call `removeHandle`. - confidence: Medium - related_existing: none --- ## Low --- _Identified during the 2026-08-02 deep re-scan; full list in [`docs/scan2-2026-08-02/06-medium-tiers.md`](docs/scan2-2026-08-02/06-medium-tiers.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]
