-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Actuator's EndpointRequest doesn't consider server.servlet.path #12934
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
Comments
@candrews I don't think it does. The |
Create a new project using https://start.spring.io/ including Web, Security, and Actuator
Run it, now go to http://localhost:8080/spring/actuator/health I'd expect to get a JSON result back with the health check status of "UP" I actually get a 302 redirect. |
ah, I didn't realize that the property you were configuring was |
I'm sorry about the error in the title :( |
@mbhave I have the following in management:
server:
port: ${MANAGEMENT_PORT:8889}
servlet:
context-path: "/management" But
|
@n0mer that fact that it has |
@snicoll with all respect - do you think that SO or Gitter are proper places to report bugs? This feature (configuration of custom context-path for webflux), as per https://stackoverflow.com/questions/49196368/context-path-with-webflux, is not yet supported. |
@n0mer What you're talking about is not a bug. It's by design that a servlet-specific property has no effect on a WebFlux application. It's also unrelated to this issue which is specifically about the |
I am facing this issue with 2.0.1-RELEASE, but only with jolokia endpoint. All other endpoints are working as expected. |
I'm still facing this jolokia endpoint issue... With the current 2.0.2.BUILD-SNAPSHOT build.
Shouldn't it be fixed? |
@gmcouto the issue with the If you've found that the bug with the Jolokia endpoint is related to the servlet-path being set (which was the original issue here), please provide a sample that reproduces that and we can reopen this issue. |
If you have server.servlet.path property set on your application, all actuator endpoints will be moved to it accordingly, except the jolokia endpoints. How the jolokia endpoint is: How the jolokia endpoint should be: Examples of other endpoints: Sample I have added the same information to the other defect. Not sure how you prefer to track this. |
Uh oh!
There was an error while loading. Please reload this page.
In application.properties, set
server.servlet.path=/spring
Now notice that EndpointRequest.* doesn't match anything. For example, a request for
/spring/actuator
/health doesn't match (a request for/actuator/health
does match, though - even though it will return a 404).The text was updated successfully, but these errors were encountered: