Aias00 opened a new issue, #6539:
URL: https://github.com/apache/shenyu/issues/6539

   ## Description
   When rebuilding auth paths, the code derives a single `appName` from the 
*first* old path 
(`oldAuthPathDOList.stream().findFirst().map(AuthPathDO::getAppName).orElse(StringUtils.EMPTY)`)
 and applies it to every new `AuthPathDO.create(dto.getPath(), id, appName)`, 
discarding `dto.getAppName()`. If the auth previously had `open=false` (no 
paths stored), `appName` resolves to `""`, so all newly-added paths get 
`appName=""`. The sibling `updateDetailPath` (line 229) does it correctly: 
`AuthPathDO.create(dto.getPath(), id, dto.getAppName())`.
   
   ## Location
   ```
   shenyu-admin/.../service/impl/AppAuthServiceImpl.java:197-204
   sibling updateDetailPath at :229
   ```
   
   ## Impact
   Path `appName` silently lost/emptied; downstream gateway routing/visibility 
keyed on `appName` breaks.
   
   ## Suggested fix
   Use `dto.getAppName()` per path, exactly as `updateDetailPath` does.
   
   ## Related existing issue(s)
   None
   
   _Identified during the 2026-08-02 audit; full list in 
[`docs/issue-candidates-2026-08-02.md`](docs/issue-candidates-2026-08-02.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