From 260092d0240616e180c92bd228e634420727cb3e Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Wed, 9 Jul 2025 16:50:55 +0200 Subject: [PATCH] Fix process listing --- http/handler/api/cluster_node.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/http/handler/api/cluster_node.go b/http/handler/api/cluster_node.go index 87fd2981..26c4f5fd 100644 --- a/http/handler/api/cluster_node.go +++ b/http/handler/api/cluster_node.go @@ -322,7 +322,6 @@ func (h *ClusterHandler) NodeFSDeleteFile(c echo.Context) error { // @ID cluster-3-list-node-processes // @Produce json // @Param id path string true "Node ID" -// @Param domain query string false "Domain to act on" // @Param filter query string false "Comma separated list of fields (config, state, report, metadata) that will be part of the output. If empty, all fields will be part of the output." // @Param reference query string false "Return only these process that have this reference value. If empty, the reference will be ignored." // @Param id query string false "Comma separated list of process ids to list. Overrides the reference. If empty all IDs will be returned." @@ -345,7 +344,6 @@ func (h *ClusterHandler) NodeListProcesses(c echo.Context) error { wantids := strings.FieldsFunc(util.DefaultQuery(c, "id", ""), func(r rune) bool { return r == rune(',') }) - domain := util.DefaultQuery(c, "domain", "") idpattern := util.DefaultQuery(c, "idpattern", "") refpattern := util.DefaultQuery(c, "refpattern", "") ownerpattern := util.DefaultQuery(c, "ownerpattern", "") @@ -359,7 +357,6 @@ func (h *ClusterHandler) NodeListProcesses(c echo.Context) error { procs, err := peer.Core().ProcessList(node.ProcessListOptions{ ID: wantids, Filter: filter, - Domain: domain, Reference: reference, IDPattern: idpattern, RefPattern: refpattern, @@ -373,7 +370,7 @@ func (h *ClusterHandler) NodeListProcesses(c echo.Context) error { processes := []api.Process{} for _, p := range procs { - if !h.iam.Enforce(ctxuser, domain, "process", p.ID, "read") { + if !h.iam.Enforce(ctxuser, p.Domain, "process", p.ID, "read") { continue }