From cb8a81c90eee90235a791aa2fd002eecfa7ec343 Mon Sep 17 00:00:00 2001 From: iglocska Date: Tue, 5 Dec 2023 14:33:56 +0100 Subject: [PATCH 1/2] fix: [caching] remove uuid validation from the feed caching - not really needed and it breaks the entire caching if a single old event has an invalid uuid --- app/Model/Server.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/Model/Server.php b/app/Model/Server.php index 1591b6c40..b2eb9393d 100644 --- a/app/Model/Server.php +++ b/app/Model/Server.php @@ -4621,9 +4621,6 @@ class Server extends AppModel $pipe = $redis->pipeline(); foreach ($data as $entry) { list($value, $uuid) = explode(',', $entry); - if (!Validation::uuid($uuid)) { - break 2; - } if (!empty($value)) { $redis->sAdd('misp:server_cache:' . $serverId, $value); $redis->sAdd('misp:server_cache:combined', $value); From b8c180f768fcaf90134174c3bfe0c6438d498fe3 Mon Sep 17 00:00:00 2001 From: Luciano Righetti Date: Tue, 5 Dec 2023 15:20:25 +0100 Subject: [PATCH 2/2] fix: [openapi] add version to match spec. fixes #9058 --- app/webroot/doc/openapi.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/webroot/doc/openapi.yaml b/app/webroot/doc/openapi.yaml index 96307e1ac..4b372c4b8 100644 --- a/app/webroot/doc/openapi.yaml +++ b/app/webroot/doc/openapi.yaml @@ -1,6 +1,8 @@ -openapi: 3.0.0 +openapi: 3.1.0 + info: title: MISP Automation API + version: "2.4" description: | ### Getting Started