Skip to content

/actuator/health returns 404 if no indicator is present #18841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
snicoll opened this issue Nov 2, 2019 · 2 comments
Closed

/actuator/health returns 404 if no indicator is present #18841

snicoll opened this issue Nov 2, 2019 · 2 comments
Labels
status: duplicate A duplicate of another issue type: regression A regression from a previous release

Comments

@snicoll
Copy link
Member

snicoll commented Nov 2, 2019

An application with no custom HealthIndicator and management.health.defaults.enabled=false will return a 404. It used to be a 200 in 2.1.x:

HTTP/1.1 200
Content-Type: application/vnd.spring-boot.actuator.v2+json;charset=UTF-8
Date: Sat, 02 Nov 2019 07:06:31 GMT
Transfer-Encoding: chunked

{
    "details": {
        "application": {
            "status": "UP"
        }
    },
    "status": "UP"
}
@snicoll snicoll added the type: regression A regression from a previous release label Nov 2, 2019
@snicoll snicoll added this to the 2.2.x milestone Nov 2, 2019
@snicoll
Copy link
Member Author

snicoll commented Nov 2, 2019

This has been discussed in #18676 but I don't understand the rationale of disabling the endpoint altogether if there are no indicators at all.

@snicoll
Copy link
Member Author

snicoll commented Nov 5, 2019

We've discussed what we wanted to do and I've requalified the original issue.

Duplicate of #18676

@snicoll snicoll closed this as completed Nov 5, 2019
@snicoll snicoll added the status: duplicate A duplicate of another issue label Nov 5, 2019
@snicoll snicoll removed this from the 2.2.x milestone Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue type: regression A regression from a previous release
Projects
None yet
Development

No branches or pull requests

1 participant