Andrea Cosentino created CAMEL-25462:
----------------------------------------
Summary: camel-platform-http-main - management settings ignored on
a shared server port
Key: CAMEL-25462
URL: https://issues.apache.org/jira/browse/CAMEL-25462
Project: Camel
Issue Type: Improvement
Components: camel-platform-http
Reporter: Andrea Cosentino
Assignee: Andrea Cosentino
Fix For: 4.24.0, 4.18.6, 4.22.2
When both the embedded HTTP server ({{camel.server.enabled=true}}) and the HTTP
management server ({{camel.management.enabled=true}}) are configured with the
same port (both default to 8080), {{ManagementHttpServer}} does not start a
server of its own. It registers the management endpoints on the HTTP server
instead (see {{ManagementHttpServer.doInit()}}).
In that mode the options that configure the management HTTP server itself, for
example {{camel.management.host}} and {{camel.management.path}}, are not
applied, and nothing is logged about it. They only take effect when the
management server has a dedicated port ({{camel.management.port}}).
Proposed:
* At startup, when the management server would share the HTTP server, detect
management server-level settings that the shared server cannot apply, and fail
with a clear message pointing to {{camel.management.port}}. Keep sharing the
port when there are no such settings.
* Document the port-sharing behaviour in {{platform-http-main.adoc}} and in the
{{camel.management.port}} option description.
* Add tests for the shared-port and dedicated-port cases.
* Add an upgrade-guide note for the stricter startup check.
_Claude Code on behalf of Andrea Cosentino_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)