From 16f02535403a7aaff2fbf5b70b2ad7de6142230d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ce=C4=BEuch?= Date: Mon, 5 Aug 2024 15:56:00 +0200 Subject: [PATCH] use mimetype from asice for document extracted from container --- .../java/digital/slovensko/avm/util/AsicContainerUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/digital/slovensko/avm/util/AsicContainerUtils.java b/src/main/java/digital/slovensko/avm/util/AsicContainerUtils.java index bd24fad..28600bb 100644 --- a/src/main/java/digital/slovensko/avm/util/AsicContainerUtils.java +++ b/src/main/java/digital/slovensko/avm/util/AsicContainerUtils.java @@ -41,8 +41,7 @@ public static DSSDocument getOriginalDocument(DSSDocument asice) throws Original throw new MultipleOriginalDocumentsFoundException("V kontajneri bolo nájdených viacero dokumentov na podpis"); var originalDocument = aSiCContent.getSignedDocuments().get(0); - if (isXML(originalDocument.getMimeType())) - setMimeTypeFromManifest(asice, originalDocument); + setMimeTypeFromManifest(asice, originalDocument); return originalDocument; }