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 01:09:27 UTC
[I] [BUG] meta_data.pathExistedExclude ignores namespace_id → cross-namespace false-positive path collision [shenyu]
Aias00 opened a new issue, #6689:
URL: https://github.com/apache/shenyu/issues/6689
- severity: Medium
- files: `shenyu-admin/src/main/resources/mappers/meta-data-sqlmap.xml:154-163`; caller `shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/MetaDataServiceImpl.java:301`
- description: `pathExisted` (line 146) correctly scopes by `namespace_id`, but `pathExistedExclude` (used on update) does `WHERE path = #{path} AND id NOT IN (...)` with NO `namespace_id` filter (verified). So when updating a meta_data whose path also exists in a *different* namespace, this returns non-null and the service raises `DATA_PATH_IS_EXIST`, blocking a legitimate update.
- impact: False "path already exists" errors on meta_data update when the path is legitimately unique within the target namespace but present elsewhere.
- suggested_fix: Add `AND namespace_id = #{namespaceId}` to `pathExistedExclude` and pass namespaceId from the service.
- confidence: High
- related_existing: none.
---
_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: notifications-unsubscribe@shenyu.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] meta_data.pathExistedExclude ignores namespace_id → cross-namespace false-positive path collision [shenyu]
Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 closed issue #6689: [BUG] meta_data.pathExistedExclude ignores namespace_id → cross-namespace false-positive path collision
URL: https://github.com/apache/shenyu/issues/6689
--
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] meta_data.pathExistedExclude ignores namespace_id → cross-namespace false-positive path collision [shenyu]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6689:
URL: https://github.com/apache/shenyu/issues/6689#issuecomment-5161301046
👋 Hello @yuluo-yx
A new issue has been opened by @Aias00:
- **Title**: [BUG] meta_data.pathExistedExclude ignores namespace_id → cross-namespace false-positive path collision
- **Link**: https://github.com/apache/shenyu/issues/6689
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