Skip to content

[BUG] InstanceInfoServiceImpl.findById always returns null (stub implementation) #6618

Description

@Aias00
  • severity: High
  • files: shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/InstanceInfoServiceImpl.java:91-94
  • description: The method body is literally return null; — it never reads from instanceInfoMapper. InstanceController.detailInstanceInfo calls this and returns the null as the response data.
  • impact: The instance detail endpoint (GET /instance/{id}, gated by system:instance:edit) always returns null data; the feature is non-functional.
  • suggested_fix: Implement findById to query instanceInfoMapper.selectById(id) and map via buildInstanceInfoVO.
  • confidence: High
  • related_existing: none.

Identified during the 2026-08-02 deep re-scan; full list in docs/scan2-2026-08-02/00-consolidated-critical-high.md.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions