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
Different actuator management server port changes response on errors #21036
Comments
I've confirmed this with When the application port and management port are the same, all errors are handled by a When the management port is different from the application port, actuator exceptions go through a different path. |
I think this has caused the regression reported in #21591. 2.2.8 hasn't shipped yet so the 2.2.x regression's only in snapshots. Re-opening so we can address it before 2.2.8 is released. |
We now set the Line 60 in 6b8d08a
This attribute is found by Tomcat and results in a 500 response being sent. |
In our plugin Chaos Monkey For Spring Boot, we are experiencing a strange problem, regarding different ports of the management server.
If we change the default management port then the error messages change. Inputs to our Actuator REST API are
@Validated
(in this case against min/max).Port different via
management.server.port
:https://i.stack.imgur.com/ozRYN.png
Request:
Response:
Same port as application:
https://i.stack.imgur.com/cAoNf.png
Request:
Response:
We're guessing that this might be related to: #10560 where the HTTP status code was fixed to be the same in both cases.
I am not 100 % sure this is a bug, or whether this is the intended behavior. We also asked on Stackoverflow (https://stackoverflow.com/questions/61267877/different-actuator-management-server-port-changes-http-response) for any ideas on how to get around the different messages (without too much customization on our side), because we would like to supply our plugin users always the same error message. We would prefer the second, descriptive error message.
Maybe good to know, we did not apply any custom filters in Chaos Monkey for Spring Boot.
Please let me know if there's anything we can do to help.
Spring Version: 2.2.6.RELEASE
Chaos Monkey For Spring Boot also needs the appropriate spring-boot-starter-web
The text was updated successfully, but these errors were encountered: