From 66991b7539f0d330b00657f757b0ca4c77f27aaf Mon Sep 17 00:00:00 2001 From: jbyrne Date: Mon, 29 Jul 2024 10:11:17 -0700 Subject: [PATCH 1/4] issue/hitide-profile-72: add form data content type to harmony call --- server/client/harmony.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/client/harmony.js b/server/client/harmony.js index 6b61d44..cb4c5e5 100644 --- a/server/client/harmony.js +++ b/server/client/harmony.js @@ -38,6 +38,7 @@ async function subset(job, accessToken) { method: 'POST', headers: { Authorization: `Bearer ${accessToken}`, + ContentType: 'multipart/form-data', }, body: formData }); From a02b64f9f23d21815d1a76debe0d5d98a163bd65 Mon Sep 17 00:00:00 2001 From: jbyrne Date: Fri, 2 Aug 2024 15:40:27 -0700 Subject: [PATCH 2/4] /deploy uat --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c46e3f4..4229b04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - issue-58: Changed harmony submit call from GET to POST. ### Removed ### Fixed +- issue-72: Fixed multipart form data for harmony submit. ## [4.10.0] From b26642fb091e17923be91562bb2ffbaeeef71e75 Mon Sep 17 00:00:00 2001 From: jbyrne Date: Mon, 5 Aug 2024 12:18:03 -0700 Subject: [PATCH 3/4] /deploy sit --- server/client/harmony.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/client/harmony.js b/server/client/harmony.js index cb4c5e5..01d2a42 100644 --- a/server/client/harmony.js +++ b/server/client/harmony.js @@ -24,7 +24,7 @@ async function subset(job, accessToken) { url += `&subset=lat(${south}:${north})`; url += `&subset=lon(${west}:${east})`; - // add granule names + // add granule names to form data const formData = new FormData(); granuleIds.forEach((granuleId) => { From 3ce11ba5415c37d370950f3a23fc62ac2d018ab7 Mon Sep 17 00:00:00 2001 From: jbyrne Date: Thu, 8 Aug 2024 12:02:51 -0700 Subject: [PATCH 4/4] /deploy sit --- server/client/harmony.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/client/harmony.js b/server/client/harmony.js index 01d2a42..269aa80 100644 --- a/server/client/harmony.js +++ b/server/client/harmony.js @@ -27,9 +27,8 @@ async function subset(job, accessToken) { // add granule names to form data const formData = new FormData(); - granuleIds.forEach((granuleId) => { - formData.append('granuleId', granuleId); - }); + const granuleIdsString = granuleIds.join(','); + formData.append('granuleId', granuleIdsString); if(merge) url += `&concatenate=true`; let response, text;