Skip to content

[Bug]: DataFixerEndpoint mixes status enum with error message in string #215

@Splatcrafter

Description

@Splatcrafter

AI REVIEWED

Module: spring-boot-starter
File: spring/actuator/DataFixerEndpoint.java (~line 209)
Severity: Medium

Summary

Domain status is represented as "DOWN: " + e.getMessage() — mixing a status enum concept with an error message in a single string field. This makes programmatic status checking unreliable.

Expected Behavior

Status and error should be separate fields in the response DTO.

Actual Behavior

domainInfo.put("status", "DOWN: " + e.getMessage());

Suggested Fix

Use separate fields:

domainInfo.put("status", "DOWN");
domainInfo.put("error", e.getMessage());

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions