From 76363145611540f6a74567636c1ae668716c599c Mon Sep 17 00:00:00 2001 From: Oleksander Piskun Date: Fri, 16 Jan 2026 15:24:34 +0200 Subject: [PATCH] fix(manual-install): prevent duplicate port in ExApp URLs Signed-off-by: Oleksander Piskun --- lib/Command/Daemon/RegisterDaemon.php | 4 ++++ lib/DeployActions/ManualActions.php | 1 + 2 files changed, 5 insertions(+) diff --git a/lib/Command/Daemon/RegisterDaemon.php b/lib/Command/Daemon/RegisterDaemon.php index 21e0d21b3..5773a3cba 100644 --- a/lib/Command/Daemon/RegisterDaemon.php +++ b/lib/Command/Daemon/RegisterDaemon.php @@ -81,6 +81,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int return 1; } + if ($acceptsDeployId === 'manual-install' && !$isHarp && str_contains($host, ':')) { + $output->writeln('Warning: The host contains a port, which will be ignored for manual-install daemons. The ExApp\'s port from --json-info will be used instead.'); + } + if ($this->daemonConfigService->getDaemonConfigByName($name) !== null) { $output->writeln(sprintf('Registration skipped, as the daemon config `%s` already exists.', $name)); return 0; diff --git a/lib/DeployActions/ManualActions.php b/lib/DeployActions/ManualActions.php index 52a6471a7..3bb193a1b 100644 --- a/lib/DeployActions/ManualActions.php +++ b/lib/DeployActions/ManualActions.php @@ -66,6 +66,7 @@ public function resolveExAppUrl( $host = $deployConfig['additional_options']['OVERRIDE_APP_HOST']; } } + $host = explode(':', $host)[0]; return sprintf('%s://%s:%s', $protocol, $host, $port); } }