-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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 endpoints with no operations that use selectors are not accessible when mapped to / #35426
Comments
Thanks for the report but I cannot reproduce the behavior that you have described. With 2.7.11, the server does not start when using the configuration properties that you have shared:
With 3.0.6 the server starts but a request to If you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the behavior that you have described. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue. |
Created small demo app where it is reproduces with spring boot 3. |
Thank you. I've now reproduced the behaviour that you have described. The following properties were missing from those shared above:
I believe the change in behaviour is due to spring-projects/spring-framework#28552. The health endpoint isn't affected as its operations mean that it has a mapping for When the base path and an endpoint's path mapping are set to #31563 tracked Boot adapting to the changes in Framework but this looks like a scenario that we didn't consider. We'll have to review the changes that we made and see if we can accommodate this scenario without breaking anything else. |
Thank you, can server.tomcat.redirect-context-root=false be temporary WA until you find permanent solution ? |
Yes, it's certainly worth trying to see if it meets your needs. |
Below worked fine with Spring Boot 2.7.11 and earlier, stopped working with Spring Boot 3.
http://host:8989/metrics
Tested other health endpoint with root - works as expected.
Works for health:
Was asked to open in spring boot by micrometer owners:
micrometer-metrics/micrometer#3839
The text was updated successfully, but these errors were encountered: