From 7c370ea19b5fea2da870e77efd3f72db945d078a Mon Sep 17 00:00:00 2001 From: Lilla Vass Date: Fri, 8 Mar 2024 15:20:31 +0100 Subject: [PATCH] fix: direct client uri fix (#5125) (#5126) --- pkg/api/v1/client/uploads.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/api/v1/client/uploads.go b/pkg/api/v1/client/uploads.go index dabd6396924..b54893620cc 100644 --- a/pkg/api/v1/client/uploads.go +++ b/pkg/api/v1/client/uploads.go @@ -9,6 +9,7 @@ import ( "mime/multipart" "net/http" "path/filepath" + "strings" "time" "k8s.io/client-go/kubernetes" @@ -81,7 +82,7 @@ func (c CopyFileDirectClient) UploadFile(parentName string, parentType TestingTy } func (c CopyFileDirectClient) getUri() string { - return c.apiPathPrefix + uri + return strings.Join([]string{c.apiPathPrefix, c.apiURI, "/", Version, uri}, "") } // UploadFile uploads a copy file to the API server