From f14a0462b83f7d651346006944328a270cab710b Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Tue, 28 Jan 2025 02:35:57 +0000 Subject: [PATCH 1/2] Fix binlog controller Signed-off-by: Kamil Tekiela --- src/Controllers/Server/BinlogController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/Server/BinlogController.php b/src/Controllers/Server/BinlogController.php index 1c7e5eeb2f..1c539a2a3a 100644 --- a/src/Controllers/Server/BinlogController.php +++ b/src/Controllers/Server/BinlogController.php @@ -35,7 +35,7 @@ final class BinlogController implements InvocableController public function __invoke(ServerRequest $request): Response { - $log = $request->getParsedBodyParamAsString('log'); + $log = $request->getParsedBodyParamAsString('log', ''); $position = (int) $request->getParsedBodyParamAsString('pos', ''); if ($this->dbi->isSuperUser()) { From 971336f5b2954a3e144d13037523a52ec39b1e7b Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Tue, 28 Jan 2025 18:01:50 +0000 Subject: [PATCH 2/2] Update ReplicationController.php Signed-off-by: Kamil Tekiela --- src/Controllers/Server/ReplicationController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controllers/Server/ReplicationController.php b/src/Controllers/Server/ReplicationController.php index ffe5df62a1..410bccdc5e 100644 --- a/src/Controllers/Server/ReplicationController.php +++ b/src/Controllers/Server/ReplicationController.php @@ -78,8 +78,8 @@ final class ReplicationController implements InvocableController if ($primaryInfo['status']) { $primaryAddUser = $request->getParsedBodyParamAsStringOrNull('primary_add_user'); - $username = $request->getParsedBodyParamAsString('username'); - $hostname = $request->getParsedBodyParamAsString('hostname'); + $username = $request->getParsedBodyParamAsStringOrNull('username'); + $hostname = $request->getParsedBodyParamAsStringOrNull('hostname'); $primaryReplicationHtml = $this->replicationGui->getHtmlForPrimaryReplication( $primaryConnection,