From dee550a8dcdc9948c0899787ad6081a71fbfa980 Mon Sep 17 00:00:00 2001 From: Alexander Matyushentsev Date: Wed, 1 Jun 2022 14:38:59 -0700 Subject: [PATCH] fix: web terminal due to query parameters name mismatch (#9560) Signed-off-by: Alexander Matyushentsev --- server/application/terminal.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/application/terminal.go b/server/application/terminal.go index 9758b2a58673..6cbbab81b0bd 100644 --- a/server/application/terminal.go +++ b/server/application/terminal.go @@ -94,8 +94,8 @@ func (s *terminalHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { podName := q.Get("pod") container := q.Get("container") - app := q.Get("app") - project := q.Get("project") + app := q.Get("appName") + project := q.Get("projectName") namespace := q.Get("namespace") if podName == "" || container == "" || app == "" || project == "" || namespace == "" { @@ -123,7 +123,7 @@ func (s *terminalHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { http.Error(w, "Namespace name is not valid", http.StatusBadRequest) return } - shell := q.Get("shell") // No need to validate. Will only buse used if it's in the allow-list. + shell := q.Get("shell") // No need to validate. Will only buse used if it's in the allow-list. ctx := r.Context()