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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to