Stefan Strigler пре 2 година
родитељ
комит
cf73aacd7b
2 измењених фајлова са 17 додато и 0 уклоњено
  1. 9 0
      changes/ce/fix-10107.en.md
  2. 8 0
      changes/ce/fix-10107.zh.md

+ 9 - 0
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`.

+ 8 - 0
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`。