Aias00 opened a new issue, #6701:
URL: https://github.com/apache/shenyu/issues/6701
- severity: Medium
- files:
`shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/ProxySelectorServiceImpl.java:347-394`
- description:
`discoveryRelMapper.selectByProxySelectorId(proxySelectorDO.getId())` (353) is
dereferenced at 354; `discoveryHandlerMapper.selectById(discoveryHandlerId)`
(355) is mutated at 358; `discoveryMapper.selectById(...)` (364) is mutated at
366; `proxySelectorAddDTO.getDiscovery()` is dereferenced at 365-368 with no
null check. Reached via `createOrUpdate` (PUT `/{id}`).
- impact: Updating a proxy selector whose binding was deleted, or omitting
`discovery` in the body, throws NPE rather than a 4xx.
- suggested_fix: Null-check each lookup and return a clear error.
- confidence: Medium
- related_existing: #6517 is about omitted `discoveryUpstreams`; this is the
omitted/missing `discovery` and missing rel/handler/discovery derefs, a
separate path.
---
_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]