From cf73aacd7bff083c19bf8e86245a743910fce06f Mon Sep 17 00:00:00 2001 From: Stefan Strigler Date: Thu, 9 Mar 2023 09:52:07 +0100 Subject: [PATCH] chore: add changelog --- changes/ce/fix-10107.en.md | 9 +++++++++ changes/ce/fix-10107.zh.md | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 changes/ce/fix-10107.en.md create mode 100644 changes/ce/fix-10107.zh.md diff --git a/changes/ce/fix-10107.en.md b/changes/ce/fix-10107.en.md new file mode 100644 index 000000000..ee972faf3 --- /dev/null +++ b/changes/ce/fix-10107.en.md @@ -0,0 +1,9 @@ +For operations on `bridges API` if `bridge-id` is unknown we now return `404` +instead of `400`. Also a bug was fixed that caused a crash if that was a node +operation. Additionally we now also check if the given bridge is enabled when +doing the cluster operation `start` . Affected endpoints: + * [cluster] `/bridges/:id/:operation`, + * [node] `/nodes/:node/bridges/:id/:operation`, where `operation` is one of +`[start|stop|restart]`. +Moreover, for a node operation, we check if node name is in our cluster and +return `404` instead of `501`. diff --git a/changes/ce/fix-10107.zh.md b/changes/ce/fix-10107.zh.md new file mode 100644 index 000000000..71695096e --- /dev/null +++ b/changes/ce/fix-10107.zh.md @@ -0,0 +1,8 @@ +现在对桥接的 API 进行调用时,如果 `bridge-id` 不存在,将会返回 `404`,而不再是`400`。 +然后,还修复了这种情况下,在节点级别上进行 API 调用时,可能导致崩溃的问题。 +另外,在启动某个桥接时,会先检查指定桥接是否已启用。 +受影响的接口有: + * [cluster] `/bridges/:id/:operation`, + * [node] `/nodes/:node/bridges/:id/:operation`, +其中 `operation` 是 `[start|stop|restart]` 之一。 +此外,对于节点操作,我们将检查节点是否存在于集群中,如果不在,则会返回`404`,而不再是`501`。