From 16edd87b74142fdbc07d010cd7a2660b3f14f336 Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Wed, 14 Aug 2024 18:57:46 +0300 Subject: [PATCH 1/2] Fix missing checksum header bug (#1003) --- artifactory/services/upload.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/artifactory/services/upload.go b/artifactory/services/upload.go index b279a6f35..1effa335f 100644 --- a/artifactory/services/upload.go +++ b/artifactory/services/upload.go @@ -685,12 +685,12 @@ func addExplodeHeader(httpClientsDetails *httputils.HttpClientDetails, isExplode func (us *UploadService) doChecksumDeploy(details *fileutils.FileDetails, targetPath string, httpClientsDetails httputils.HttpClientDetails, client *jfroghttpclient.JfrogHttpClient) (resp *http.Response, body []byte, err error) { - requestClientDetails := httpClientsDetails.Clone() - httpClientsDetails.AddHeader("X-Checksum-Deploy", "true") - utils.AddChecksumHeaders(requestClientDetails.Headers, details) - utils.AddAuthHeaders(requestClientDetails.Headers, us.ArtDetails) + clonedHttpClientsDetails := httpClientsDetails.Clone() + clonedHttpClientsDetails.AddHeader("X-Checksum-Deploy", "true") + utils.AddChecksumHeaders(clonedHttpClientsDetails.Headers, details) + utils.AddAuthHeaders(clonedHttpClientsDetails.Headers, us.ArtDetails) - resp, body, err = client.SendPut(targetPath, nil, requestClientDetails) + resp, body, err = client.SendPut(targetPath, nil, clonedHttpClientsDetails) return } From e68b65d940385a839d3c52dcca4fb13705b7e2e4 Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Wed, 14 Aug 2024 19:02:34 +0300 Subject: [PATCH 2/2] Promote to 1.44.1 (#1004) --- utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils.go b/utils/utils.go index 3f0e55638..a1fdd0289 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -28,7 +28,7 @@ import ( const ( Development = "development" Agent = "jfrog-client-go" - Version = "1.44.0" + Version = "1.44.1" ) type MinVersionProduct string