From 12a00fe9c576cc49586b17401aef17eefa1e7d38 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Tue, 28 Apr 2026 17:24:56 +0100 Subject: [PATCH] bug fixes for some desktop tools (#6246) --- .../tools/certSign/modals/CertificateConfigModal.tsx | 4 +--- .../core/hooks/tools/getPdfInfo/useGetPdfInfoOperation.ts | 3 --- frontend/src/core/hooks/tools/showJS/useShowJSOperation.ts | 1 - .../tools/validateSignature/useValidateSignatureOperation.ts | 3 --- frontend/src/core/tools/EditTableOfContents.tsx | 3 --- frontend/src/proprietary/services/licenseService.ts | 5 ----- frontend/src/proprietary/services/workflowService.ts | 5 ----- 7 files changed, 1 insertion(+), 23 deletions(-) diff --git a/frontend/src/core/components/tools/certSign/modals/CertificateConfigModal.tsx b/frontend/src/core/components/tools/certSign/modals/CertificateConfigModal.tsx index 5ddc85b54..0032f186e 100644 --- a/frontend/src/core/components/tools/certSign/modals/CertificateConfigModal.tsx +++ b/frontend/src/core/components/tools/certSign/modals/CertificateConfigModal.tsx @@ -112,9 +112,7 @@ export const CertificateConfigModal: React.FC = ({ subjectName: string | null; notAfter: string | null; error: string | null; - }>(endpoint, formData, { - headers: { "Content-Type": "multipart/form-data" }, - }); + }>(endpoint, formData); if (response.data.valid) { setCertValidation({ diff --git a/frontend/src/core/hooks/tools/getPdfInfo/useGetPdfInfoOperation.ts b/frontend/src/core/hooks/tools/getPdfInfo/useGetPdfInfoOperation.ts index d52dc5c32..ee0715c80 100644 --- a/frontend/src/core/hooks/tools/getPdfInfo/useGetPdfInfoOperation.ts +++ b/frontend/src/core/hooks/tools/getPdfInfo/useGetPdfInfoOperation.ts @@ -79,9 +79,6 @@ export const useGetPdfInfoOperation = (): GetPdfInfoOperationHook => { const response = await apiClient.post( "/api/v1/security/get-info-on-pdf", formData, - { - headers: { "Content-Type": "multipart/form-data" }, - }, ); const stub = selectors.getStirlingFileStub(file.fileId); diff --git a/frontend/src/core/hooks/tools/showJS/useShowJSOperation.ts b/frontend/src/core/hooks/tools/showJS/useShowJSOperation.ts index 931929010..478ea33fd 100644 --- a/frontend/src/core/hooks/tools/showJS/useShowJSOperation.ts +++ b/frontend/src/core/hooks/tools/showJS/useShowJSOperation.ts @@ -72,7 +72,6 @@ export const useShowJSOperation = (): ShowJSOperationHook => { "/api/v1/misc/show-javascript", formData, { - headers: { "Content-Type": "multipart/form-data" }, responseType: "text", }, ); diff --git a/frontend/src/core/hooks/tools/validateSignature/useValidateSignatureOperation.ts b/frontend/src/core/hooks/tools/validateSignature/useValidateSignatureOperation.ts index bc7272b22..49d745b43 100644 --- a/frontend/src/core/hooks/tools/validateSignature/useValidateSignatureOperation.ts +++ b/frontend/src/core/hooks/tools/validateSignature/useValidateSignatureOperation.ts @@ -102,9 +102,6 @@ export const useValidateSignatureOperation = const response = await apiClient.post( "/api/v1/security/validate-signature", formData, - { - headers: { "Content-Type": "multipart/form-data" }, - }, ); const data = Array.isArray(response.data) diff --git a/frontend/src/core/tools/EditTableOfContents.tsx b/frontend/src/core/tools/EditTableOfContents.tsx index 5980c391d..725c64124 100644 --- a/frontend/src/core/tools/EditTableOfContents.tsx +++ b/frontend/src/core/tools/EditTableOfContents.tsx @@ -34,9 +34,6 @@ const extractBookmarks = async (file: File): Promise => { const response = await apiClient.post( "/api/v1/general/extract-bookmarks", formData, - { - headers: { "Content-Type": "multipart/form-data" }, - }, ); return response.data as BookmarkPayload[]; diff --git a/frontend/src/proprietary/services/licenseService.ts b/frontend/src/proprietary/services/licenseService.ts index e6dfc0a8f..600498b33 100644 --- a/frontend/src/proprietary/services/licenseService.ts +++ b/frontend/src/proprietary/services/licenseService.ts @@ -462,11 +462,6 @@ const licenseService = { const response = await apiClient.post( "/api/v1/admin/license-file", formData, - { - headers: { - "Content-Type": "multipart/form-data", - }, - }, ); return response.data; diff --git a/frontend/src/proprietary/services/workflowService.ts b/frontend/src/proprietary/services/workflowService.ts index 3c8e842e2..b52bd4867 100644 --- a/frontend/src/proprietary/services/workflowService.ts +++ b/frontend/src/proprietary/services/workflowService.ts @@ -98,11 +98,6 @@ class WorkflowService { const response = await api.post( "/api/v1/workflow/participant/submit-signature", formData, - { - headers: { - "Content-Type": "multipart/form-data", - }, - }, ); return response.data; }