Skip to content
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

actuator/info endpoint broken when upgrading from spring boot 2.4 to 2.5 #27187

Closed
poser55 opened this issue Jul 8, 2021 · 3 comments
Closed
Labels
status: invalid An issue that we don't feel is valid

Comments

@poser55
Copy link

poser55 commented Jul 8, 2021

I created a minimal application with the Spring initializer (demo.zip attached) with Actuator and Spring MVC - I did not add any code of my own, just the default code.
The http://localhost:8080/actuator/info endpoint does not work in 2.5.2 (when downgrading to 2.4.8 it works again).

demo.zip

Is it related to #26746 ?
It does not seem to be related to #26630 (spring data is not in the classpath).

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 8, 2021
@snicoll
Copy link
Member

snicoll commented Jul 8, 2021

@poser55 please consider reviewing the release notes before upgrading to a new feature release. This is covered in this section.

@snicoll snicoll closed this as completed Jul 8, 2021
@snicoll snicoll added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 8, 2021
@poser55
Copy link
Author

poser55 commented Jul 9, 2021

Sorry @snicoll, I forgot the 2nd part of the bug report:
Even with my application.yml like this, the info endpoint is not shown:

management.endpoint.info.enabled: true


The documentation for 2.5.2 https://docs.spring.io/spring-boot/docs/2.5.2/reference/pdf/spring-boot-reference.pdf still mentions the (old?) config setting:

management.endpoint.info.enabled=true

--
I found now an alternative config setting that works:

management.endpoints.web.exposure.include: info

But I did not find a mention of the old setting no longer being usable?

@snicoll
Copy link
Member

snicoll commented Jul 9, 2021

That's for enabling the endpoint, not exposing it. The link to the release notes I've shared in my initial comment has a link to this part of the documentation where the table states that info is not exposed. Below that list, there are a few examples that are using management.endpoints.web.exposure.include.

I don't really know what problem you are reporting I am afraid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

3 participants